# Repeat (String str, Integer count)

| 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](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/properties%2016359262396671.png)

## 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](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/dataflow%2016359263032972.png)

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](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/output%2016359263206093.png)
