mm yeah thought you had to search for patterns
(repeating elements in same "configuration" you specified)
if you need to search all of those elements in any position
I would suggest saving your list of elements in a string,
just as you write it in your post, but with additional start and end delimiter
(this will be needed for find string later):
.1.2.6.7.8.9.10.11.12.17.18
.
let's call it "my_string"
and then:
1) use the string tokenizer to split my_string at "."
2) fire loop "my_loop" numberofelements times
3)
on loop "my_loop"
Find(my_string, "."+Str$( Val( Element$( "String tokenizer", LoopIndex("my_loop") ) )
+10 )+".", 0) >= 0
Find(my_string, "."+Str$( Val( Element$( "String tokenizer", LoopIndex("my_loop") ) )
+12 )+".", 0) >= 0
>>> pattern found for number: Element$( "String tokenizer", LoopIndex("my_loop") )
(real code above so you can plug and play in "compare two general values, pattern in red)
not tested, but should work, hopefully..
(btw, the numbers are not there, it should be 1.11.13, change pattern or string for testing

)