McIDAS User's Guide
Version 2016.2

[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]


REPEAT

Repeats a McIDAS command.


Format

REPEAT string start TO end BY inc start BY inc
. . start
BY inc [keyword]


Parameters

string

string name containing the commands to run; 1 to 12 characters; any string beginning with these characters is run

start

starting parameter value (default=0)

end

ending parameter value (default=0)

inc

value to increment the parameter with each repetition (default=1)

TO

mandatory parameter indicating the range between start and end

BY

mandatory parameter indicating the increment between start and end


Keyword

MAXN=

maximum number of commands to run (default=200)


Remarks

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 (–).


Examples

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


[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]