ispositiveinfinity() Function

Function

ispositiveinfinity( number )

Tests given numbers against positive infinity, returning true if the numbers are positive infinity, false if the numbers are not positive infinity.

Parameters

Keyword Type Description

number

Number (Decimal)

Number to test against positive infinity.

Returns

Boolean

Examples

Checking for positive infinity

1
ispositiveinfinity(100)

Returns false.

1
ispositiveinfinity(2147483646)

Returns false.

1
ispositiveinfinity(2147483647)

Returns true. 2147483647 is the maximum integer value for a signed 32-bit integer.

1
ispositiveinfinity(-2147483647)

Returns false.

Checking for positive infinity on multiple values

1
ispositiveinfinity(234, -40, -9999, 2147483647)

Returns {false, false, false, true}.

1
ispositiveinfinity({234, -40, -2147483647})

Returns {false, false, false}.

1
ispositiveinfinity({‚Äč{234, -40, 2147483647}, {234, 0}}, {}, {12})

Returns {false, false, true, false, false, false}. Lists of values are flattened and empty lists are ignored.

Checking for positive infinity in a dictionary

1
ispositiveinfinity({dictionaryKey: -129384}.dictionaryKey)

Returns false.

Checking for positive infinity in a map or CDT

1
ispositiveinfinity(a!map(mapKey: 12312312312323).mapKey)

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: Fri, May 26, 2023 (08:44:55 PM)

On This Page

FEEDBACK