If / ElseIf / Else
Executes code based on a condition.
Syntax
If condition Then ... ElseIf ... Else ... End If
Description
Opened with Then, closed with End If. Equality is =, not equal is <>.
Example
Loading editor…
This language is for reference/learning only — copy the code and try it in your own environment.
Expected output
Passed
When to use?
Flow branching.