Trial loops condition


How may i sent the conditional in the trial loop such that it evaluates and works?
I tried both $var==value and var==value. Neither works. Please see screen shot.


OS (e.g. Win10): mac sierra
PsychoPy version (e.g. 1.84.x): 2020.2.3
Standard Standalone? (y/n) If not then what?: scratch build

I do not want to use a csv or xlsx file to read conditions. I want it to work off a variable whose value I change throughout different parts of the experiment.

In that case have nothing in the conditions field and set your variable in a routine just before the loop starts.

The loop controls whether the routines it nests are executed.

  1. Is there a way to bunch up a few routines under a conditional?
    I suppose one way is to have a variable that you test before you run each routine in the set.
    The other way would be to put the test in a single trial loop with a trial condition (which is what i was trying to do).

  2. I am also looking to repeat a bunch of routines as a group in other parts of the experiment. Can i bunch multiple routines under one routine?