Reference
The Macro Editor

In SuperLab, a macro is an "expression" that returns "true" or "false" when evaluated, with two optional accompanying lists of "actions" to perform depending on whether the expression evaluates to true or false:
 


 

Adding Actions

The following actions are available:

Relative vs. Absolute Jumps

SuperLab provides a rich set of actions that cause “jumps”, meaning that they interrupt the sequential flow of an experiment and cause SuperLab to jump to another block.  All are relative jumps except Go to Another Block with the Present Block option selected, which causes an absolute jump.  Relative jumps are relative to the current block being presented.  If possible, using relative jumps is preferred over an absolute jump because it allows a macro to be reused.  An example is a staircase procedure where you create a single reusable macro that goes to the next block if the expression is true or goes back to the previous one if the expression is false.

See Also