{{tag>Function Function_List Text}} ====== LAST_INDEX_OF ====== ===== Description ===== Returns an integer constant indicating the last index of the first string within the second string. For example, ''LAST_INDEX_OF('r', 'bright red fox')'' returns 8. If the first string is not contained within the second one 0 is returned. ===== Syntax ===== ''LAST_INDEX_OF (search, text)'' Can be used in the condition of a [[:ref:a_f:a:find|FIND]] action. ===== Parameters ===== Two attributes of the Plain Text type or two string constants or calculations producing text ===== Returns ===== **Number**: the 1-based position of the last occurrence of the first string in the second, or 0 if not found. ===== Example ===== IF LAST_INDEX_OF ('Smith', Account.Name) = 0 THEN ... ===== Related ===== [[ref:a_f:f:af:index_of|INDEX_OF]], [[ref:a_f:f:af:substring|SUBSTRING]], [[ref:a_f:f:af:length|LENGTH]]