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

14 lines
525 B
Markdown

## 6.1 Syntax of the IF-THEN-ELSE Statement
The basic syntax of the IF-THEN-ELSE statement in AVAP™ is as follows:
```javascript
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.