Lasso Soft Inc. > Home

[Boolean]

[Boolean] casts a value to a boolean value.

The following values are cast to False:
- The empty string '' or the string 'false'.
- The integer zero 0 or decimal zero 0.0.
- [Null]
- The empty array [Array] or empty map [Map].

Every other value is cast to True including:
- Any non-empty string or the string 'true'.
- Any non-zero integer or decimal value including negative values.
- Any non-empty map or array.

  • Syntax
  • Parameters
[Boolean: 'Value']

[Variable: 'VariableName'=(Boolean: 'Value')]
Required Parameters
Value The value which is to be cast to boolean.
Examples

To cast a value to boolean:

Use the [Boolean] tag. The following example casts the string 'false' to boolean, resulting in False.

[Boolean: 'false']
Result:
False
Tag Link [Boolean] Category Technical
Type Substitution Data Source Any
Support Preferred Version 5.0
Output Type Boolean Security None
Implementation Internal Sets Lasso 6.0, Lasso 5.0

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft