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

Function

rdrop( array, number )

Drops a given number of values from the right side of an array, and returns the resulting array.

Parameters

Keyword Type Description

array

Any Type Array

The array to modify.

number

Integer

The number of values to drop from the array.

Returns

Any Type Array

Usage considerations

The number value must be greater than or equal to 0.

Examples

Drop last value in a list

rdrop({10, 20, 30, 40}, 1) returns {10, 20, 30}.

Drop multiple values from a list

rdrop(split("label.language.region", "."), 2) returns {"label"}.

Drop characters from a string

concat(char(rdrop(code("Hello World"), 6))) returns "Hello".

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

rdrop() Function

FEEDBACK