Whatever message this page gives is out now! Go check it out!

RepeatString

Last update:
May 18, 2026

Description

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

Returns

A string.

Category

Function syntax

RepeatString(string, count)

See also

Parameters

Parameter
Description
string
A string or a variable that contains one.
count
Number of repeats.

Example

<cfscript>
       myStr="Lorem Ipsum";
       WriteOutput(RepeatString(myStr,5));
</cfscript>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page