For 0 to Tokencount("1|2|3","|")-1
and loopindex returns the tokencount
You can retrieve the string data as
For 0 to TokenCount("1|2|3","|")-1
Array | Set at(LoopIndex) to Tokenat("1|2|3",loopindex,"|")
the -1 is because tokenat is 0-based but tokencount isn't
Cheers !