If you use Cheetah, please support the project and register by clicking here:


9.5 #unless ... #end unless

Syntax:

#unless EXPR
#end unless

#unless is the opposite of #if: the text is executed if the condition is false. Sometimes this is more convenient. #unless EXPR is equivalent to #if not (EXPR).

#unless $alive
This parrot is no more!  He has ceased to be!
'E's expired and gone to meet 'is maker! ...
THIS IS AN EX-PARROT!!
#end unless

You cannot use #else if or #else inside an #unless construct. If you need those, use #if instead.

If you use Cheetah, please support the project and register by clicking here: