Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

$PadLeft

Returns a new string that right-aligns the characters in this instance by padding them on the left with a specified character, for a specified total length.

Script usage:

$PadLeft(Text, Length, [PadCharacter])

Parameters:

NameDescription
TextThe input string.
LengthThe length of the string to return.
PadCharacterThe character to be inserted as padding. The default is a space.