; | |
Type | keyword |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Summary | The character ; is used to place more than one statement on a single line. |
Introduced | 1.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Example |
|
Related | Keyword: character, \ Glossary: line, string, literal string, statement, script editor, execute |
Description | Use the ; character to compress code into fewer visible lines for easier reading. Lines that are split with ; are shown in the script editor as a single line, but when executed, are treated as multiple lines of code. The following line counts as three statements:
is the same as:
A ; character which is used within a literal string does not signal a new line, because the ; is treated as part of the string instead of being treated as a line break. The advantage of using the ; character are fewer physical lines of code which can mean marginally smaller stack file sizes. The disadvantage is that it can be harder to read and debug the code. |