then | |
Type | keyword |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Summary | Used in an if control structure to separate the condition from the statements that are executed if the condition is true. |
Introduced | 1.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Example |
|
Related | Keyword: else, end if Glossary: keyword, statement, execute, control structure Control Structure: if |
Description | Use the then keyword before the statements you want to execute if a condition is true. If you want to execute a single statement, place the then keyword before the statement on the same line, as in these examples:
or
If you want to execute multiple statements, place the then keyword on the line before the list of statements, as in this example:
|