Error getting tags :
error 404Error getting tags :
error 404 then | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
then
Basics
Expander triangle
Type
Keyword
Syntax
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Used in an if control structure to separate the condition from the statements that are executed if the condition is true.
Examples

if a is true then beep

Additional Comments
Expander triangle

Use the then keyword before the statements you want to execute if a condition is true.

Comments:

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

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

User Comments
Expander triangle