_@IRFIND

_@IRFIND function is used in a Logic Template to find if and where one string is contained within the other. The first string is searched for the last occurence of the second string within it. The comparison is not case-sensitive i.e. "Politics" would match "politics".

If the string "Hello!hello!hello!Hello" were searched for the string "hello", the result would be 19.

Returns

Value

Description

0

The second string is not found within the first string.

Location of the last occurence

The second string is found within the first string.

Format
_@IRFIND
( string_1, string_2 );

Argument

Description

string_1

The first string literal or the name of the first string data field to be tested.

string_2

The second string literal or the name of the second string data field to be tested.

Example
//Process only if searching for the word "politics"

IF ( _@IRFIND( Keywords, "politics" ) )

. . . . . . .

ENDIF