right()

Scalar. Returns the rightmost characters of a string.

Syntax

right ( string, number )

Parameters

string

A string.

number

The number of characters to return from the string.

Usage

Returns the rightmost characters of a string. The function takes in a string and an integer, and returns a string.

Example

right ('examplestring', 6) returns 'string'.