Boolean
Converts the input into a Boolean value.
Syntax
Boolean(input)
Enabled for
Search/Dashboard | No |
Business Rules | No |
Quick Actions | Yes |
Workflow Objects | No |
Reports | No |
Parameter
input | The input to evaluate. Can be text, number, currency, or a Boolean. |
Return Value
Boolean value. See Constructing Expressions. See also Conversion to Boolean Values.
If the input parameter is text:
- If it contains "true" (case insensitive), returns true.
- If it contains "false" (case insensitive), returns false.
- If it contains anything else, returns an error.
If the input parameter is a number or currency:
If it contains zero, returns false.
- If it contains anything else, returns true.
If the input parameter is a Boolean:
- Returns the Boolean value.
Returns an error if the input parameter is another type, such as DateTime.
Returns null if the input parameter is null.
Examples
$(Boolean("true"))
In the example above, the system returns true.
$(Boolean("false"))
In the example above, the system returns false.
$(Boolean("29 Apr 2014"))
In the example above, the system returns an error.
$(Boolean(27.69))
In the example above, the system returns true.
$(Boolean(0))
In the example above, the system returns false.