BASIC CONDITIONS. repeat [n] Evaluates to true the first n times it is checked. If n is omitted, always evaluates to true. time t Evaluates to true the first time it is checked after the time elapsed since the start of the current TrialEvent, BlockEvent, ExperimentEvent, or GroupingEvent, or since the last event tagged with the ResetEventTime command, reaches t. Note that this time refers to event timer, and is not necessarily the same as the time variable, which refers to the data timer. event e Evaluates to true the first time it is checked after the event named e has been executed. a equals b Evaluates to true if a equals b. Note that a must be a variable, though b can be either a variable or a literal value. key k Evaluates to true the first time it is checked after the key k has been pressed. If k is any, then evaluates to true if any key has been pressed. Note that once a key condition evaluates to true, the corresponding key press is discarded, and will not satisfy any other conditions. mouse b Evaluates to true the first time it is checked after mouse button b has been pressed, where b is left, right, or center. If b is any, then evaluates to true if any mouse button has been pressed. joystick b Evaluates to true the first time it is checked after joystick button b has been pressed, where b is a number specifying a particular button. If b is any, then evaluates to true if any joystick button has been pressed. voice key Evaluates to true the first time it is checked while sound input is detected. Note that unlike time, event and key, it is not enough that sound was detected at some point in the past; it must be detected at the time the condition is checked.
Appears in 3 contracts
Sources: License Agreement, License Agreement, License Agreement