|
Action |
Searches a string for the presence of a second string.
|
Syntax |
INSTR ("string1", "string2")
|
Parameters |
String1
The string to search in.
String2
The string to search for.
|
Returns |
|
? |
Offset of the first character of string2 found in string1, counted from the beginning of string1 |
|
0 |
String2 not present in string1 |
|
Example |
$x = INSTR(@DOMAIN,
"TEST") ; check if domain
contains the string "TEST"