If | |||||||||||||||||||
Type | control structure | ||||||||||||||||||
Dictionary | LCB | ||||||||||||||||||
Library | LiveCode Builder | ||||||||||||||||||
Syntax |
| ||||||||||||||||||
Associations | com.livecode.language | ||||||||||||||||||
Summary | Executes a list of statements depending on the value of a condition. | ||||||||||||||||||
Parameters |
| ||||||||||||||||||
Description | Use the if control structure to execute a statement (or list of statements) only under certain circumstances. If IfCondition evaluates to true, the statements in IfStatementList are executed. For each condition ElseCondition such that none of the previous conditions evaluates to true, the condition is evaluated and the corresponding statements in ElseIfStatementList are executed. If none of the conditions evaluate to true, the statements in ElseStatementList are executed. |