Skip to main content
REPEAT()

Repeats a specified string a given number of times.

Updated over a week ago

Description

The REPEAT() function is used to repeat a specified string a given number of times. This function is useful for generating repeated patterns, padding, and creating text-based graphics.

Syntax

REPEAT(text, number)

Output

text

Variables

  • text: The input text string that you want to repeat.

  • count: The number of times you want to repeat the text string.

โœ… The REPEAT() function will repeat the input text string as many times as specified by the count. If the count is set to 0, the function will return an empty string. Make sure to handle scenarios where the count might be negative or excessively large to avoid unexpected results or performance issues.

Example

REPEAT(`Text`, 3)

ID

Text

REPEAT

1

*

***

2

Hello

HelloHelloHello

3

A

AAA

Did this answer your question?