COPIES
Returns a specified number of concatenated copies of a string.
Syntax
COPIES(string,[number])
Arguments
| Argument | Description | Default | 
|---|---|---|
| string | The string to copy. | None | 
| [number] | A whole number (0 or greater) that indicates the copies of string to make.  Note: If number is a variable, it can be 0 or greater. If number is a constant it must be greater than 0.  | 
        1 | 
Results
| Result | Description | |
|---|---|---|
| Return | A string that contains the specified copies. If you set number to 0, EngageOne™ Enrichment returns an empty string. | |
| %%RC | One of the following: | |
| -1 | number is less than 0. | |
| 0 | No error. | |
| 1 | The output string exceeds 1000 characters in length. EngageOne™ Enrichment outputs only the first 1000 characters. | |
| 2 | number is invalid (0). | |
| %%RM | A null string (''). | |
| %%RV | Always set to 0. | |
Examples
| Function Call | Return | %%RC | 
|---|---|---|
COPIES('*',5) | 
        '*****' | 
        0 | 
COPIES('Copy',3) | 
        'CopyCopyCopy' | 
        0 |