cfdocs

repeatString

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

repeatString(String, count)
returns string

Argument Reference

Name Type Required Default Description
String string Yes    
count numeric Yes    

Script Syntax

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

Expected Result: Expected Result: ColdFusion ColdFusion ColdFusion