For the complete documentation index, see llms.txt. This page is also available as Markdown.

RepeatString

Create a string that contains a specified number of repetitions of the specified string.

Method Signature

RepeatString(string=[string], count=[integerTruncate])

Arguments

Argument
Type
Required
Description
Default

string

string

true

The string to repeat.

count

integerTruncate

true

The number of times to repeat the string.

Examples

Script Syntax

Run Example

getVal = repeatString( "Boxlang ", 3 );
writeDump( getVal );

Result: Expected Result: Boxlang Boxlang Boxlang

Additional Examples

Last updated

Was this helpful?