Skip to content
Discussion options

You must be logged in to vote

Hi @yseulthb, great question. You can do this using dynamic parameters so that you only need to create the instruction trial once (and any other trial that includes text), and make any text-related parameters dynamic, i.e. functions that return the appropriate value, based on the language that was selected.

There are lots of ways to do this, but here's one example. In this example I've created a global variable called lang. The value is null when the experiment starts, and then it's set in the on_finish function of the trial where the participant selects their preferred language. This way, the lang variable can be used throughout the whole experiment to determine what text-related paramet…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yseulthb
Comment options

Answer selected by yseulthb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants