repeat() Function
This function cannot be used with Custom Record Field Expressions. It can only be used with Offline Mobile if it is loaded at the top of the form.
For a full list of functions and their feature compatibility, explore the Appian Functions table.

Function

repeat( times, input )

This function takes an input of Any Type and returns a list with the input repeated a specified number of times.

Parameters

Keyword Type Description

times

Integer

The number of times to repeat the input.

input

Any Type

The scalar value to repeat. Lists are not allowed.

Returns

Any Type

Usage considerations

The input parameter does not support lists.

Examples

You can copy and paste these examples into the Expression Rule Designer to see how this works.

repeat(2, "hello") returns "hello", "hello"

Open in Github Built: Wed, Jan 26, 2022 (11:43:23 AM)

On This Page

FEEDBACK