ok, so I know that you can use * callouts in for or while loops where “i” is a variable number that increments such as in the following example
answerTxt0.text = test.childNodes.attributes.name;*
but is it possible to do the same thing on the variable side?
if I was to create several variables like the following:
correct0 = “”;
correct1 = “”;
correct2 = “”;
correct3 = “”;
etc.
can I make a call in a for loop to have the variable name increment as well? (see the following)
correct = question.attributes.correct;**
if anyone knows if this is possible, or if there is a work around, please advise - it is very much appreciated.
This one line of code would save me over 40 lines of code.