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:
| 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:
| Example | Result |
|---|---|
| Repeat( ' * ', rating ) when rating = 4 | Returns ' * * * * ' |