toboolean( value )
Converts a value to Boolean.
Keyword | Type | Description |
---|---|---|
|
Any Type |
Value to convert. |
Boolean
A 0
returns false
; all other numbers return true
.
Strings beginning with t
, T
, y
, Y
, or 1
return true
; all other strings return false
.
When operating on arrays, it is not necessary to use apply
with toboolean
. If multiple parameters are passed, or one parameter is an Array, then a Boolean Array is returned.
toboolean(0)
returns false
toboolean(0,1,0)
and toboolean({0,1,0})
both return {false,true,false}
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | |
Process Reports | Compatible | |
Process Events | Compatible |
toboolean() Function