Index
The meaning of this argument depends on the mode.
Mode = 0|1 (absolute)
0 Random draw
i The i-th element from 1..N elements will be selected
Mode = 2 | 3 (relative)
delta Delta between the last element selected by the GE-command and the to-be-selected element. The direction depends on the mode (2 for descending, 3 for ascending).
Mode = 4 Log last element selected by GE. Use this mode when you loop a trial and you want to record the last element selected by GE-command.
Example for traversing a set and recording the final value
PICTURE 1 N
PICTURE 2 N
PICTURE 3 N
PICTURE 4 N
PICTURE 5 N
PICTURE 6 N
SET Digits V 1 2 3 4 5 6 ; Set with digits 1..6
PICTURE RndPic N ; Dummy picture used as destination object
; If this trial is executed many times, all letters are displayed in random order
TRIAL Initialize
GE Digits RndPic 0 ; Draw random element and assign it to RndPic
TRIAL SelectDigit
RK ResKeys ; Record Keys
SP RndPic MidPos 1 0 1 ; Show random picture until response
OK ; Branch to different action depending on key
CL: GE Digits RndPic 2 1 ; Select previous element from set
CL: ET 1 1 1 2 ; Repeat this trial and do not record
CR: GE Digits RndPic 3 1 ; Select next element from set
CL: ET 1 1 1 2 ; Repeat this trial and do not record
GE Digits RndPic 4 ; log last element selected by GE command)
Copyright 2023 - BeriSoft Inc.
All rights reserved