645 B
645 B
The if Statement
The if statement in AVAP is used for conditional execution. The syntax is as follows:
if (variable, variableValue, comparator, expression)
code to execute
else()
code to execute
end()
This statement evaluates the condition specified by the variable , variableValue , comparator , and expression . It selects exactly one of the suites (blocks of code) by evaluating the expressions one by one until a true condition is found. The corresponding suite is then executed. If all conditions are false, no suites are executed.