This is an old revision of the document!
int StrFind(str s, str what)
Returns the position of what in s. If the string is not present, returns -1.
StrFind("abcdef", "def") -> 3 StrFind("abcdef", "abc") -> 0 StrFind("abcABCabc", "ABC") -> 3 StrFind("abcdef", "xyz") -> -1
int index = StrFind(s, "keyword"); if (index != -1) print(s:"Found the keyword at position ", d:index); else: print(s:"Keyword not found");