REPEAT string start TO end BY inc start BY inc
. . start BY inc [keyword]
Before running REPEAT, set up your string using ! number for each parameter to be incremented; number must begin at 1 and increment by 1. An exclamation point (!) followed by an integer in a string will increment the parameter on each run. Parameters may be decremented using a minus sign (–).
If the string named LOAD contains the entry "IMGDISP A.!1 !2", then entering the following command, displays image A.1 in frame 3, A.2 in frame 5, A.3 in frame 7, and A.4 in frame 9.
REPEAT LOAD 1 TO 4 BY 1 3 BY 2