Next:
for statement
Up:
Flow Control Structures
Previous:
if statement
Contents
unless
statement
To execute a group of commands when a condition is not true, one can use
if ! expression command group end
Alternatively, one can use the structure
unless ... end
unless expression command group end
Note that the
unless
statement only has this one simple form; there can't be any
else
or
elseif
keywords following it.
oz 2009-12-22