IF THEN ELSE

ENDIF

If Then Else

Endif

The

IF/THEN/ELSE/ENDIF

commands form a decision and branching construct.

Syntax
,-
operand 1
-,
/
b
predefined variable
/
huser-defined
variable)
b
predefined function
/
L
trace
element
/
GT
/
LT
EQ
NE
GE
LE
predefined variable
/
buser-defined
variable/
G
trace element
/
analyzer command
analyzer
command ENDIF
Item Description/Default
Number Any real or integer number.
User-defined variable A variable defined by VARDEF or ACTDEF commands.
Predefined
variable
Predefined function
Trace element
Analyzer command
A command that acts as a variable. Refer to Table 5-l.
Function that returns a value. Refer to
lhble
5-1.
An element of trace A, trace B, trace C, or a user-defined trace.
Any spectrum analyzer command.
Range
Real number range.
Any valid variable
name.
Prerequisite Commands: ACTDEF or VARDEF when using a user-defined variable.

Related Commands: REPEAT/UNTIL.

5-236 Programming Commands