# Repeat - script and chart function

Repeat() forms a string consisting of the input string repeated the number of times defined by the second argument.

Syntax:

Repeat(text[, repeat\_count])

Return data type: string

Arguments:

Repeat arguments

| Argument | Description |
| --- | --- |
| text | The original string. |
| repeat\_count | Defines the number of times the characters in the string text are to be repeated in the output string. |

Examples and results:

Examples and results

| Example | Result |
| --- | --- |
| `Repeat( ' * ', rating )` when rating = 4 | Returns ' \* \* \* \* ' |