_@FIND

_@FIND 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 first occurence of the second string within it. The comparison is case-sensitive i.e. "Politics" would not match "politics".

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

Returns

Value

Description

0

The second string is not found within the first string.

Location of the first occurence

The second string is found within the first string.

Format
_@FIND
( 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 ( _@FIND( Keywords, "politics" ) )

. . . . . . .

ENDIF