Skip to main content
Version: 7.9

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

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