-
Notifications
You must be signed in to change notification settings - Fork 1
Pad Operators
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 turn1255673into0001255673 -
PadRight($Name, 20, "_")would turnCompany NameintoCompany Name________