Skip to main content

$(padStart)

$(padStart [length] [char] [text])

Pads the start of the text with char until it is length characters long. The pad character may be quoted ('0') — use ' ' for a space.

Examples

$(padStart 5 0 42)

Will display "00042"

$(padStart 3 0 {{deaths}})

Will display a death counter with leading zeros, e.g. "007"