Does anyone know how to define dynamic variables in ChatScript? I have a Loop () statement and want to initialize and populate a variable during each loop iteration with the loop iteration…e.g. during the first loop set $$loop1 = AA, second loop set $$loop2 = BB, third loop set $$loop3 = CC, X loop set $$loopX = DD, etc. The loop count will be a variable # of iterations.
I’m looking for something within the loop statement like say on the 10th loop set $$loop($$loopnum) = “XX” which would create $$loop10 and set it to “XX.” Or can this be done through an array?