Click here to return to the KiXtart HelpDesk main page...

KiXtart Command Reference

INSTR

action

Scans 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

0

String2 not present in string1

example

$x = INSTR(@DOMAIN, "TEST")   ; check if domain contains the string "TEST"