LassoScript Utility
Basics Browse Detail


Tag Link [Boolean] Category Technical
Type Substitution Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type Boolean Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0


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


[Boolean: 'Value']

[Variable: 'VariableName'=(Boolean: 'Value')]


Required Parameters
Value The value which is to be cast to boolean.


To cast a value to boolean:

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

[Boolean: 'false']