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
| Name | Required | Type | Description |
|---|---|---|---|
text to pad | Yes | Any text e.g. "Hello, World!" | |
pad direction | Yes | One of the following options: > left > right | Options: left, right |
length | Yes | Any whole number | |
character | Yes | Any 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.