XtScript Function: str_repeat

Indotechboystr_repeat is an XtScript function that will process a string and repeat it based on the given multiplier argument and return the result.

XtScript str_repeat function basic syntax:

  call str_repeat $val=...; $multiplier=...

Learn XtScript str_repeat function from examples

❕ Repeat a string certain times using XtScript str_repeat function.

    var $string = Hello
    var $mult = 10
    var $mult_string = call str_repeat $val=$string; $multiplier=$mult
    print String: $string <br/>
    print Multiplied: $mult_string
String: Hello
Multiplied: HelloHelloHelloHelloHelloHelloHelloHelloHelloHello

By SiDar

Webmaster Assistant and Editor at

SiDar enjoying himself listening J-pop genre music and playing games, especially old school games. Sometimes he also found watching anime and reading manga are interesting when his fellow author recommend him some good titles.

Leave a Reply

Your email address will not be published. Required fields are marked *