14 lines
527 B
Markdown
14 lines
527 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.
|