WORDS_FROM_RIGHT

Returns the text being the specified number of the rightmost words in the provided text.

WORDS_FROM_RIGHT (text, count)

Cannot be used in the condition of a FIND action.

Attribute of the Plain Text type or string constant or calculation producing text and an integer constant indicating the number of words to retrieve

Text: the given number of rightmost words of the text (Cloudscape/Derby database only).

IF WORDS_FROM_RIGHT (Account.Name, 1) = 'Smith' THEN ...