Boolean

Converts the input into a Boolean value.

Syntax

Boolean(input)

Enabled For

For a description of the business object categories, see Notes on "Enabled For".

Business Object Category Yes/No
Business Rules: Before-Save Rules Yes
Business Rules: Calculation Rules (After Save, with or without Also Recalculate on Load) Yes
Business Rules: Calculation Rules (Before Save or Always, without Also Recalculate On Load) Yes
Business Rules: Calculation Rules (Before Save or Always, with Recalculate On Load) Yes
Business Rules: Editing Rules Yes
Business Rules: Initialization Rules Yes
Business Rules: Read Only Rules Yes
Business Rules: Required Rules Yes
Business Rules: Validation Rules Yes
Client Expressions Yes
Object Permissions No
Services Yes
LDAP Yes
Mobile Yes
Quick Actions (except UI Quick Actions) Yes
UI Quick Actions Yes
Reports Yes
Search/Dashboard without field references Yes
Search/Dashboard with field references No

Parameter

Parameter Description
input The input to evaluate. Can be text, number, currency, or a Boolean.

Return Value

Boolean value. See Boolean Embedded Literals. 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 application returns true.

 

$(Boolean("false"))

In the example above, the application returns false.

 

$(Boolean("29 Apr 2014"))

In the example above, the application returns an error.

 

$(Boolean(27.69))

In the example above, the application returns true.

 

$(Boolean(0))

In the example above, the application returns false.