repeatString

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

repeatString(String, count) → returns string

Argument Reference

String string
Required

count numeric
Required

Examples
Sample code invoking the repeatString function

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

Expected Result: Expected Result: ColdFusion ColdFusion ColdFusion

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub