Skip to main content
Version: 8.1

repeat

This function is used by Ignition's Expression language.

Description​

Repeats the given string some number of times.

Syntax​

repeat(string, count)

  • Parameters

    • 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 ""