[Boolean] is a primitive built-in data type used to represent the value true or false. Literal true and false are produced with the words 'true' or 'false' (no quotes, not case-sensitive).
Calling the boolean() method with no parameters will return false. Calling the method with any other single parameter will return either true or false depending on the following:
The following values are considered to be false:
Every other value is considered true.
A value is implicitly converted to true or false when used as the single operand to the 'if' or 'while' constructs.
boolean('Value')
local(x = boolean('Value'))
Use the [boolean] method. The following example converts the string 'false' to boolean, resulting in False.
Code
boolean('false')
Result
false
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2013 | Web Development by Treefrog Interactive Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments