If
Evaluates and returns a given statement if the condition is true. If the condition is false, another statement is evaluated and returned.
Syntax
if
· [condition]
· [ifTrue]
· [ifFalse]
- condition
- A statement that evaluates to boolean.
- ifTrue
- The statement to evaluate and return if the condition is true.
- ifFalse
- The statement to evaluate and return if the condition is false.