Keyword Then - leonard-thieu/monkey GitHub Wiki
Optional separator used for readability in If blocks.
Syntax
If Expression [ Then ] Statements... EndIf
If Expression Then Statement
Description
The keyword Then allows separation of expression and statement(s); however, its only function is to aid readability according to programmer preference and it can be safely left out.
See also
Examples
' Simple variable check:
If a = 1 Then
Print "a equals one"
Endif
' Single-line example, using Then:
If a = 1 Then Print "a equals one"
' The 'Then' separator is optional:
If a = 1 Print "a equals one"