Choose where you’d like to start

right()

Overview

The right() function takes a string and a number as arguments. It returns the specified number of characters from the string's right side.

Return Type

  • Text

Syntax

<variable> = <string>.right( <number> );
ParameterDescriptionData type
<variable>Variable which will contain the returned string value.TEXT
<string>The string from which the characters will be returned.TEXT
<number>

The number of characters which will be returned.

If the number exceeds the count of characters in the string, or a negative value is specified, an error will be encountered during runtime

NUMBER

Examples

product_name="Zoho Creator";
text = product_name.right(7);         // returns "Creator"

Get Started Now

Execute