BEGIN...END
Syntax | Version History | See Also
The BEGIN...END statement defines a block of statements. A block of statements is a group of statements that is treated as a single statement. Blocks are necessary when more than one statement is the subject of a conditional or repetitive statement. For more information on using BEGIN...END and other IDL program control statements, see Program Control (Application Programming).
Syntax
BEGIN
statements
END | ENDIF | ENDELSE | ENDFOR | ENDREP | ENDWHILE
The END identifier used to terminate the block should correspond to the type of statement in which BEGIN is used. The following table lists the correct END identifiers to use with each type of statement.
Note
CASE and SWITCH also have their own END identifiers. CASE should always be ended with ENDCASE, and SWITCH should always be ended with ENDSWITCH.
Version History
See Also
BREAK, CASE, CONTINUE, FOR, GOTO, IF...THEN...ELSE, REPEAT...UNTIL, SWITCH, WHILE...DO, Program Control (Application Programming)