Introduces the default set of statements in block-if or in multiple-selection control structures.
No options or parameters
Description
The use of ELSE
in block-if structures is explained in the description of the IF
directive. Its use in multiple-selection control structures is explained in the description of CASE
.
Options: none.
Parameters: none.
See also
Directives: CASE
, OR
, ENDCASE
, IF
, ELSIF
, ENDIF
, EXIT
.
Commands for: Program control.
Example
" Example 1:6.5.1 " " Get location of image file for use by IMPORT " SCALAR _chan OPEN '%GENDIR%/Examples/GuidePart1/CapeWagtail.jpg'; _chan; FILE=input ENQUIRE CHANNEL=_chan; FILE=in; NAME=file CLOSE _chan; FILE=input IMPORT [PRINT=*; RGBMETHOD=matrix] file; COLUMNS='RGB' " resize the window to match the dimensions of the bit map " CALCULATE Nr = NROWS(RGB) & Nc = NCOLUMNS(RGB) IF Nr < Nc FRAME 3; YUPPER=Nr/Nc ELSE FRAME 3; XUPPER=Nc/Nr ENDIF DBITMAP [WINDOW=3] RGB