
5. SYMBOLIC MACRO PROGRAM
B–66102E/10
32
IF[#100 EQ 0] THEN #101 = 1;
ELSE ;
#101 = 2 ;
GOO X#103 ;
ENDIF ;
Up to three levels of nesting of the IF statement are allowed.
IF [...] THEN ;
IF [...] THEN ;
Statement ;
ELSE ;
IF [...] THEN ;
Statement ;
ENDIF ;
ENDIF ;
Statement ;
ELSE ;
Statement ;
ENDIF ;
CAUTION
When only a single macro statement is to be executed, the
macro statement can be specified immediately after
THEN/ELSE. In this case, no ENDIF statement is usually
required. However, an ENDIF statement is required when
IF [...] THEN Macro-st ; is specified just before ELSE or
ENDIF of the previous nesting as shown below:
IF [...] THEN ;
IF [...] THEN Macro-st ;
IF [...] THEN Macro-st ;
ENDIF ; äThe ENDIF line is required
ELSE ; because IF [...] THEN
Macro-st ; is specified just
before ELSE or ENDIF of
the previous nesting.
IF [...] THEN Macro-st ;
IF [...] THEN Macro-st ;
ENDIF ; äThe ENDIF line is required
ENDIF ; because IF [...] THEN
Macro-st ; is specified just
before ELSE or ENDIF of
the previous nesting.