Free cookie consent management tool by TermsFeed true() Function
true() Function

Function

true( returns )

Returns the Boolean value true.

Parameters

Keyword Type Description

returns

Boolean

Returns the boolean value true.

Returns

Boolean

Usage considerations

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.

Examples

true() returns true

Feature compatibility

The table below lists this function's compatibility with various features in Appian.
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
Open in Github Built: Wed, Apr 24, 2024 (06:52:47 PM)

true() Function

FEEDBACK