# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/astera-data-stack-v6/functions/string/repeat-string-str-integer-count.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
