rep(
ROOT
,
COUNT
)

The rep( function assembles a text item by repeating a smaller text item over and over again.


Parameters

This function has two parameters:

root – is the main character, word or phrase that you want to repeat over and over again. This must be a text item.

count – is the number of times you want the root to be repeated.


Description

The rep( function simply appends a text value to itself over and over again.

rep("*",20) ☞ ********************
rep("hello ",3) ☞ hello hello hello 

The parameters are actually interchangeable, so you’ll get the same result if you reverse them.

rep(20,"*") ☞ ********************
rep(3,"hello ") ☞ hello hello hello 

See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but allows the parameters to be reversed.