Pad

Pads a value with the specified string from the left, right or both sides

Pad("24", "0", 4, SideOption.RIGHT) → "2400"
Pad("40", "n", 5, SideOption.LEFT) → "nnn40"

Inputs

Pad(string, padString, length, [sideOption])

  • string - A text value

  • padString - The text to pad string with

  • length - Targer length

  • [sideOption] - LEFT, RIGHT or BOTH sides option, ex. SideOption.RIGHT

Last updated