Action
End an IF .. THEN
structure.
Syntax
END IF or ENDIF
Remarks
You must always end
an IF .. THEN structure with an END IF statement.
You can nest IF ..THEN
statements.
The use of ELSE is
optional.
The editor converts
ENDIF to End If when the reformat option is switched on.
Example
Dim
nmb As Byte
AGAIN: 'label
INPUT " Number " , nmb 'ask
for number
IF a = 10 THEN
'compare
PRINT " Number is 10" 'yes
ELSE 'no
IF nmb > 10 THEN
'is it greater
PRINT " Number > 10" 'yes
ELSE 'no
PRINT " Number < 10" 'print
this
END IF 'end structure
END IF 'end structure
END 'end program
|