Free cookie consent management tool by TermsFeed

or() Function

Function

or( value )

Returns true if any inputs are true; returns false if all inputs are false.

Parameters

Keyword Type Description

value

Boolean

A value or array of values that must be false for the function return false.

Returns

Boolean

Usage considerations

Casting and returning boolean values

  • Arguments are cast to Boolean before or() evaluates.
  • As soon as the returned value of a value evaluation returns true, the function returns true.

Evaluation order and performance

  • Multiple arguments are evaluated left-to-right.
  • Keep common conditions on the left and complex edge cases on the right to improve function performance. If an earlier simple function returns true, the later edge cases don't need to be evaluated.

Null and empty arrays

  • Null values that are part of input arrays are filtered out before evaluation.
  • Empty arrays evaluate to false.
  • Empty text strings in a text array evaluate to false, but empty text strings in an array with multiple data types are considered null values and are filtered out before evaluation.

Examples

Use functions to Pass Multiple Logical Values:

or(isleapyear(1996),isleapyear(1997)) returns true

Pass an Empty Array:

or({}) returns false

Pass an Array of Numbers:

or(1,2,"",3) returns true

or(0,1,2,"",3) 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
Process Reports Compatible
Process Events Compatible

Feedback