
The INSTR function finds substrings that are parts of a source string.
If the source string contains that substring, INSTR returns a 1-based offset.
The return value of INSTR is 0, if the substring could not be found.
outmode -2 let a$ = "helloworld" let b$ ="wo" let i = instr (a$, b$) print i end
The output is 6 since "wo" is found at the sixth position of a$
Internally the C-library function strstr is used.