true

Typeconstant
DictionaryLCS
LibraryLiveCode Script
Syntax
true
Summary

Equivalent to the string "true".

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the cantDelete of this stack to true
if (a and b) or (c and d) is true
RelatedKeyword: string
Constant: false
Command: constant
Glossary: property, logical, statement, expression
Control Structure: if
Description

Use the true constant to indicate that a property is turned on or that a logical expression evaluates to true.

In many cases, the true constant can be omitted without changing the meaning of the statement. For example, the following two if statements are equivalent:

if the lockText of field 1 is true then ...
if the lockText of field 1 then ...

Tagsmath