Difference between revisions of "NXSL:right"
Jump to navigation
Jump to search
Tomas Kirnak (talk | contribs) |
m (Text replacement - "^" to "{{deprecated}}") |
||
Line 1: | Line 1: | ||
__NOTOC__ | {{deprecated}}__NOTOC__ | ||
Returns the string of ''length'' characters of ''string'', optionally padded with ''pad'' character instead of blank (space) starting from the right. Padding occurs on the left portion of the string. | Returns the string of ''length'' characters of ''string'', optionally padded with ''pad'' character instead of blank (space) starting from the right. Padding occurs on the left portion of the string. | ||
Latest revision as of 16:13, 13 September 2022
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide) |
Returns the string of length characters of string, optionally padded with pad character instead of blank (space) starting from the right. Padding occurs on the left portion of the string.
Syntax
right(string, length [,pad]);
Parameters
string | The string which will be processed. |
length | The number of character to return, must be a positive integer. |
pad | [Optional] The pad character to use instead of blank spaces. |
Return Value
String of the right length characters.
Examples
right("abc d",8) -> " abc d" right("abc def",5) -> "c def" right("17",5,"0") -> "00017"