repeatString

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

repeatString(String, count) → returns String

Argument Reference for the repeatString function

String

Required: Yes

count

Required: Yes

Examples sample code invoking the repeatString function


Script Syntax

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

Expected Result: Expected Result: ColdFusion ColdFusion ColdFusion


Fork me on GitHub