right(x,n) or right(x,characterList)

The first argument is a variable or value of any type. This function converts the first argument to a string (if it is real or double, it is formatted with six decimals only); then either extracts the rightmost n characters from a string, where n is a positive integer constant; or extracts all characters to the right of any character in the characterList, where characterList is one or more characters specified within quote (") characters. The output is a string variable. For example,
$right ("abcdefg",4) = defg
$right("abcdefg","dxn") = efg
If nothing in the input characterList is found in the string, the result is an empty string.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.