--- title: "repeat" description: "Repeats the given string some number of times." --- # repeat > Repeats the given string some number of times. **This function is used by Ignition's Expression language.** ## Description ## 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 ```python title="Code Snippet" repeat("hello", 2) //returns "hellohello" ``` ```python title="Code Snippet" repeat("hello", 0) //returns "" ```