repeat
This function is used by Ignition's Expression language.
Descriptionβ
Repeats the given string some number of times.
Syntaxβ
repeat(string, count)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | string | The string to repeat. |
| Integer | count | The number of times to repeat the string. |
Resultsβ
String - The given string repeated the given number of times.
Examplesβ
Code Snippet
repeat("hello", 2) //returns "hellohello"
Code Snippet
repeat("hello", 0) //returns ""