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

Break within a Loop #241

Open
hyrng opened this issue Jun 26, 2024 · 1 comment
Open

Break within a Loop #241

hyrng opened this issue Jun 26, 2024 · 1 comment

Comments

@hyrng
Copy link

hyrng commented Jun 26, 2024

What would you like or expect to see?

I'd like to build an experiment with multiple stimuli to present sequentially. A break after iterating a certain amount of time through the loop should be displayed to prevent cognitive overload.

What is currently happening?

The loop consists of x parameters that represent the experiment's stimuli. They are shown in randomized order. To add a break in-between I had to create a second loop and split the set of stimuli in half. However, it's not possible anymore to randomize the stimuli throughout the whole experiment.

Please describe the steps needed to reproduce this phenomenon

Created loop with parameters to be randomized. Loop contains sequence that consists of two screens. First screen presents the randomized stimuli material. After 10x of showing the stimuli I'd like to put in a "break" screen before continuing with the experiment.

Did I oversee any functionality or is it just not possible to have break in-between?

Finally, please tell us which browser you're using (and the version thereof)

Google Chrome Version 126.0.6478.126

@Jeffery18-hub
Copy link

You can set a global variable that tracks the number of your trials. when the tiral number hits half, set timeout to be the a certain amount of time you want.

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

No branches or pull requests

2 participants