true( returns )
Returns the Boolean value true
.
Keyword | Type | Description |
---|---|---|
|
Boolean |
Returns the boolean value |
Boolean
Using the true()
function is equivalent to using true
(without calling the function) in any expression. If calling the true()
function with parentheses, any parameters provided to the function are ignored.
In addition, it isn't necessary to compare a condition to true—the result of a conditional statement can be used directly.
For example, this expression will return "Yes"
:
1
2
3
4
5
if(
a!isUserMemberOfGroup(cons!MY_GROUP) = true(),
"Yes",
"No"
)
However, the following expression returns the same output:
1
2
3
4
5
if(
a!isUserMemberOfGroup(cons!MY_GROUP),
"Yes",
"No"
)
Tip: The true()
and false()
functions are commonly used with comparison or logical operators. See the expressions page for more examples.
true()
returns true
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 | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Compatible | |
Process Events | Compatible |
true() Function