3.5. Nested Flow-Control Statements
Description
Syntax
if <bool expression>
if <bool expression>
<statement A>
…
else
<statement B>
…
endif
endifExample
var pressure=95, limit=90, inject_on=true
if inject_on
if pressure > limit
print "warning: pressure is high."
else
print "in normal operation."
endif
endif
endLast updated
Was this helpful?