RoBOTL

if instruction


if ( boolexp ) instruction
if ( boolexp ) { instructions }

This control instruction conditionally executes the instruction or sequence of instructions only if the boolean expression boolexp is TRUE.


if ( boolexp ) instruction else instruction
if ( boolexp ) instruction else { instructions }
if ( boolexp ) { instructions } else instruction
if ( boolexp ) { instructions } else { instructions }

Similar to the above control instructions, except that the instruction or sequence of instructions before the else are only executed if the boolean expression boolexp is TRUE and the instruction or sequence of instructions following the else are only executed if the boolean expression boolexp is FALSE.


The if instruction can also be specified as If.
The else separator can also be specified as Else.


Other Control Instructions:


You can also go:

Created on 19 June 1995
Last revised 20 August 1996
Copyright ©1995,1996 Walter S. Ching, n1hbr@ma.ultranet.com