[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')]
Use the [Boolean] tag. The following example casts the string 'false' to boolean, resulting in False.
[Boolean: 'false']
False
Tag Link | [Boolean] | Category | Technical |
---|---|---|---|
Type | Substitution | Data Source | Any |
Support | Preferred | Version | 5.0 |
Output Type | Boolean | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, 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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft