right
Syntax: %right(string,fromleft)
return the rightmost part of string starting at the fromleft position (the first character is position 1)
Examples:
#SHOW %left("abcdef",2)
displays: ab
#SHOW %right("abcdef",2)
displays: cdef
#SHOW %leftback("abcdef",2)
displays: abcd
#SHOW %rightback("abcdef",2)
displays: ef
memory aid:
%left(anystring,anynumber) plus %right(anystring,anynumber) is "anystring"
%leftback(anystring,anynumber) plus %rightback(anystring,anynumber) is "anystring" |