_@IFIND |
|
_@IFIND 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 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 1.
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
_@IFIND( 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 ( _@IFIND( Keywords, "politics" ) )
. . . . . . .
ENDIF