Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generateProperties produces a 'condition not defined' error #326

Open
becky-gilbert opened this issue Mar 20, 2023 · 0 comments
Open

generateProperties produces a 'condition not defined' error #326

becky-gilbert opened this issue Mar 20, 2023 · 0 comments

Comments

@becky-gilbert
Copy link
Contributor

Possible bug: the study hangs on the frame below because generateProperties code produces a condition not defined error.

Code:

"remember-my-condition": {
  "kind": "exp-lookit-text",
  "generateProperties": "function(expData, sequence, child, pastSessions, conditions) {var conditions = expData['3-condition-text-trials'].conditions;if (conditions['conditionNum'] == 0) {console.log('condition 1');} else  {console.log('condition 2');}}",
  "blocks":[{"text":"some text"}]
}

See here for description: lookit/lookit-api#1139 (comment)

See Conditions and Logic study on staging for an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Researcher QOL
Development

No branches or pull requests

1 participant