Last Modified: 1/4/2021
Executes code based on if a set of criteria is met or not.
Name | Type | Required | Description |
Expression | Integer | Yes | The Expression must return true or false. |
Syntax: If <Expression> Then [Code] [ElseIf <Expression> Then] [Code] [Else] [Code] End If |
a = 5 b = a If a < 5 Then Print "a is less than 5" ElseIf a > 5 Then Print "a is greater than 5" Else Print "a is 5" If b = 5 Then Print "b is also 5" End If |