# A small battle with square brackets

**URL:** <https://forum.kirupa.com/t/a-small-battle-with-square-brackets/234922>\
**Category:** flash\
**Created:** [August 7, 2007, 7:00am UTC](https://forum.kirupa.com/t/a-small-battle-with-square-brackets/234922 "2007-08-07T07:00:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeiaGraf](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/leiagraf/32/3602_2.png) [@LeiaGraf](https://forum.kirupa.com/u/LeiaGraf)\
**Post date:** [August 7, 2007, 7:00am UTC](https://forum.kirupa.com/t/a-small-battle-with-square-brackets/234922/1 "2007-08-07T07:00:34Z")

</div>

Yup, in the spirit of saying sorry for bugging everyone… I’m gonna bug you again!

Seeing as how some lovely person introduced me to the wonders of square brackets, I’ve been having a ball. Until this one came up.

The problem I’m having is all with taking the number from quesArray, adding that to “feedback” and then getting it to call a variable called that. i’ve tried so many combinations of using the var “feed” and other things… I need a parrot right now squawking “Wit’s end! Wit’s end!”.

Basically, there are 41 odd string vars all called feedback1-feedback41 that need to be called in when the appropriate number comes up. I can get the number, that’s no problem.

```auto
 
for (i=0; i<26; i++) {
 if (correctArray* == true) {
  isRight = "Correct";
 } else if (correctArray* == false) {
  isRight = "Incorrect";
 }
 qnum = quesArray*;
 trace(qnum);
 feed = ("feedback"+qnum);
 trace (feed);
 
//Problem is with the next line, where it says [feed]...
 
 var blurb:String = (blurb+"Q"+[i+1]+" "+isRight+"
"+[feed]+"

");
}

```

Thanks. Flash is evil! Yet I cannot let it beat me. So I come begging for help instead!
