assistance-engine/docs/developer.avapframework.com/chapter10_2.md

527 B

6.1 Syntax of the IF-THEN-ELSE Statement

The basic syntax of the IF-THEN-ELSE statement in AVAP™ is as follows:

if(condition, true_value, operator) 
            // Block of code if the condition is true else() 
            // Block of code if the condition is false end()
  • condition : This is an expression that evaluates to either true or false.
  • true_value : This is the value assigned if the condition is true.
  • operator : This is the operator used to compare the condition with the true value.