# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F3R2B4CmPLYqd0wVR3pHn%2Fproperties%2016359262396671.png?alt=media)

## 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F74oTrcH43YYr64UwFB8o%2Fdataflow%2016359263032972.png?alt=media)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FP2yV6L5556LXwuf42Id2%2Foutput%2016359263206093.png?alt=media)
