Used in an if control structure to separate the condition from the statements that are execute if the condition is true.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
then
# Examples
if a is true then beep
# Description
If you want to execute a single statement, place the then keyword before the statement on the same line, as in these examples:
if 1+1 = 2 then doSomethingTrite
or
if someConditionObtains() then performAnAction
If you want to execute multiple statements, place the then keyword on the line before the list of statements, as in this example:
if the backgroundColor of this stack is white then doFirstAction doAnotherAction end if
# Tags
# See