tokenat(ArrayB.At(var1),0,";") = cat,rat,bat
tokenat(ArrayB.At(var1),1,";") = mat,foot,ban
tokenat(ArrayB.At(var1),2,";") = etc.......
probably you can use loop..
reapet X times...tokenat(ArrayB.At(var1),loopindex,";")
or another variable
...tokenat(ArrayB.At(var1),(var2),";")
it will be easier to answer if you upload capx...