Keyword Endif - leonard-thieu/monkey GitHub Wiki

Marks the end of a conditional block.

Syntax

  If Expression [ Then ]    Statements...   Endif

Description

Endif marks the end of a conditional block. Optionally, the variant End If can be used instead. See If for more information on If blocks.

See also

Examples

' Simple variable check:

If a = 1
    Print "a equals one"
Endif

' Same, using End If instead of Endif:

If a = 1
    Print "a equals one"
End If