CenterView Help
padRight
Function: padRight()
Right pad a string to the given length with spaces (or character if provided).
Syntax
padRight(string, length, [character])
Argument | Type | Description |
---|---|---|
string | String | The string to be padded. |
length | Integer | The length the string needs to be, including padded characters. |
character | String | Padding character to be used. |
Examples
padRight(toString(in.Site),2,'0')
if in.Site = 1, padRight() returns '10'.
See Also
Please let us know if we could improve this page feedback@phixflow.com