Skip to main content

Text.Pad

Fills the text from the left or right with the given character until the specified length is met

Syntax​

Text.Pad "text_to_pad" pad_direction length "character"

Returns​

text value

Arguments​

NameRequiredTypeDescription
text to padYesAny text e.g. "Hello, World!"
pad directionYesOne of the following options:
> left
> right
Options: left, right
lengthYesAny whole number
characterYesAny text e.g. "Hello, World!"Has to be exactly 1 character long.

Details​

The "character" argument must have EXACTLY 1 character in it.

Possible errors​

  • The "character" argument doesn't have EXACTLY 1 character in it.

On a running server​

Use serhelp Text.Pad to inspect the reference generated by your installed SER version.