--- 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 - string **string** - The string to repeat - int **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 "" ```