[solved] Flag or GoTo items and functions
Hi,
Is there an efficient way to return to the start of an experiment after a loop has been finished? I'm trying to create a start menu in which you can select the wanted experiment and amount of trials on the go, so ideally, after one experiment has been completed the start screen should re-appear to select the next experiment (or close the program when finished). I realize goto functions are frowned upon but maybe it is possible to insert Flags in the experiment loop, similar to E-prime?
Laurent

Comments
Hi Laurent,
if you add another
sequenceto your experiment, in which the first item is some sort of menu implementation (viainline_script, most likely), and add a number ofsequence`, each of which represents one of your experiments, you should get your desired effect. However, depending on how many experiments you need, and each of their resources demands, I can imagine, that you might bump into some performance issues. Just give it a try.Good luck,
Eduard
edit:
btw, is it clear how you would access each of the experiments and implement the menu? If not, I could try to give you some pointers for that.
Hi Eduard,
I've added another 'main' sequence in which the menu and all my experiments will run. The menu consists of a empty form item on which i draw a few buttons that correspond with the experiment and an exit button. Furthermore, I select the amount of trial runs with some checkboxes on the same menu form. This works fine now.
However, this main sequence should run an unlimited amount of times until the 'exit' button has been selected in the main menu, similar to pressing the escape button when you use a keyboard. Any idea how this can be done?
Oh and just for clarification, i run this with the Droid back-end because everything should be implemented to run on tablets (so all responses are touch-screen based).
Ninja edit: Just discovered the Break-if option under the advanced options checkbox in the loop item, exactly what i needed. It's fixed now!
Great to hear! Good luck with testing.
Eduard