right() Function

Returns a specified number of characters from the text, starting from the last character.

Syntax

right ( text, [num_chars] )

text: (Text) The text from which the substring will be taken.

num_chars: (Number) The length in characters of the subtext to extract.

Returns

Text

Notes

Although the characters are counted right-to-left, their order will remain left-to-right.

Examples

right("boston",3) returns ton

Open in Github Built: Fri, Jun 03, 2022 (01:08:29 PM)

On This Page

FEEDBACK