Skip to content
Martin Danielsson edited this page Jul 23, 2015 · 2 revisions

The PadLeft and PadRight operators pad a string to either the left or the right with a given character and a given length.

What Type
Syntax Pad<Left Right>(s, length, char)
s any
length int
char string (length 1)
Return type bool

s is examined and padded to the length specified in length, using the character specified in char.

Examples:

  • PadLeft($Key, 10, "0") would turn 1255673 into 0001255673
  • PadRight($Name, 20, "_") would turn Company Name into Company Name________
Clone this wiki locally