REPT

The REPT function repeats a given text string a specified number of times. Node references are also accepted as arguments.

Syntax

rept(value:string, count:number)

Arguments

value- Required. A text string.

count- Required. A number indicating how many times the string should be repeated.

Example

rept('Forecast ', 2)

Returns “Forecast Forecast ".

Last updated

Was this helpful?