# Is using \[i\] in variable callouts possible?

**URL:** <https://forum.kirupa.com/t/is-using-i-in-variable-callouts-possible/195767>\
**Category:** Uncategorized\
**Created:** [August 2, 2006, 11:30pm UTC](https://forum.kirupa.com/t/is-using-i-in-variable-callouts-possible/195767 "2006-08-02T23:30:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![garebear](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@garebear](https://forum.kirupa.com/u/garebear)\
**Post date:** [August 2, 2006, 11:30pm UTC](https://forum.kirupa.com/t/is-using-i-in-variable-callouts-possible/195767/1 "2006-08-02T23:30:56Z")

</div>

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.
