Repeat (String str, Integer count) – String

Name Repeat
Applicable To (DataType) String
Purpose To repeat the given string of data a desired number of times.
Description Returns a string repeating the input string a ‘count’ number of times.
Return Type String
Syntax str [System.String] – the string to repeat.
count [ System.String] – the number of times to repeat.
delimiter [System.String] – delimiter to add after each instance

properties

Example:

In this example, we are passing the required parameters by the function transformation from a Variables object.

Where,

str = AB CD

count = 2

delimiter = ,

dataflow

Right-click on the function transformation object and select Preview Output. You can see that the characters specified in the str data field are repeating two times, separated by the given delimiter.

output