Predicate function - Boolean
The Boolean functions are used for evaluating boolean values and logical truth conditions.
-
These predicates accept any input type and attempt automatic boolean conversion.
-
Common boolean-like string values are recognized case-insensitively (for example: true, false, yes, no, 1, 0).
-
Null and undefined are treated explicitly and consistently across predicates.
-
These predicates are frequently used in workflow rules, conditional expressions, and guard conditions.
|
Function |
Description |
Example |
|---|---|---|
| IsBoolean(value) | Returns true if the value can be parsed as a boolean. |
|
| IsTrue(value) | Returns true if the value is true after automatic type conversion. |
|
| IsFalse(value) | Returns true if the value is false after automatic type conversion. |
|
| IsNullOrTrue(value) | Returns true if the value is null/undefined or true after automatic type conversion. |
|
| IsNullOrFalse(value) | Returns true if the value is null/undefined or false after automatic type conversion. |
|