Example | variable tVar as List
variable tOffset as Number
put ["a", "b", "c", "d", "b", "c"]
put the offset of ["b","c"] in tVar into tOffset
put the last offset of ["b", "c"] in tVar into tOffset
|
Description | Use the offset of to find where a particular sub-list occurs within
a list. Haystack is scanned for a sequence of elements that are
equal to the elements of Needle, and the position of the start of
the sequence found is returned. If neither the "first offset" nor
"last offset" are specified, the index of the first matching sub-list
found is returned. If no sub-list of Haystack is equal to Needle,
the return value is 0.
|