Berserk Docs
Scalar FunctionsString Functions

strrep

Repeats a string a specified number of times.

Syntax

strrep(value, multiplier, delimiter)

Parameters

Prop

Type

Returns: string

Examples

Example 1 — Repeat a string multiple times

print strrep("raid ", 3)
print_0 (string)
raid raid raid

Example 2 — Repeat with a delimiter between each repetition

print strrep("Skol", 3, "! ")
print_0 (string)
Skol! Skol! Skol

On this page