if — Conditionally execute code.
if
test
code
[
elseif
| test
| code
...]
[
else
| code
]
The if command executes Hecl code conditionally. In its
most basic form, it executes a
. If the
results are not 0, then it executes
test
. If not,
no further actions take place. if may
take any number of code
elseif
clauses, which
have their own
and
test
. Finally,
if none of the conditions has matched, it is also possible
to supply an code
else
clause that will be
executed if the results of the if and elseif tests were all
false.