RIGHT

r = RIGHT (s[,n])

Returns the n number of rightmost chars of string s. If n is not specified n = 1.

Example

s = "abcdef"

print right(s)      ' Output: f
print right(s,2)    ' Output: ef
print right(s,10)   ' Output: abcdef