User`s guide

Agilent EasyEXPERT User’s Guide Vol. 1, Edition 1 5- 21
Built-in Programming Tool
Script Program Statements
COMMENT This statement enters a comment in the program line.
END This statement terminates program execution. After the END statement, the routines
defined by the FINALLY statement are performed.
ERROR This statement causes an error. However, no error code is stored in the @ERROR
system variable because of the fictious error.
FOR Beginning of the FOR/NEXT loop block. FOR and NEXT are added to the program
list as a pair. The statements repeatedly performed when looping must be defined
between the statements. The FOR/NEXT statements are entered as follows:
FOR <variable> = <initial value> TO <terminate value> STEP <step value>
NEXT <variable>
where, <variable> is a variable used for the loop counter. <initial value>,
<terminate
value>, and <step value> are values for the loop counter start value, stop
value, and step value respectively.
The EXIT FOR statement is available to exit from the loop before the loop count
reaches <terminate
value>. After looping, the next line of NEXT is performed.
IF Beginning of the IF/END IF block. The statements are added to the program list as a
pair. The IF statement specifies the primary branching condition. The routines
performed when the condition is satisfied are defined between the statements. The
statements are entered as follows:
IF <expression>
END IF
where, <expression> is the condition of branching. Optionally the following
statements can be used in this block.
ELSE IF <expression>
This statement specifies the additional branching condition used when the
previous condition is not satisfied, and defines the routines performed when this
branching condition is satisfied.
ELSE
This statement defines the routines performed when no branching condition is
satisfied.