Repeat a string a specified number of times.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_string_repeat

Purpose

Repeat a string a specified number of times.

Arguments

  • $1 — String to repeat (default a space).
  • $2 — Repeat count (default 0).

Output

Writes the repeated string without a newline.

Returns

  • 0 after printing.

Usage

  sgnd_string_repeat "-" 5