title: selenium ide loop through array variables
body: <p>in selenium ide, i have built a test case, in which a array variable stores the values. i have used while loop to print those array variables. </p>
  
  <p><img src="https://i.stack.imgur.com/8wV7R.png" alt="enter image description here"></p>
  
  <p>here i have used "getEval | myarray[0]" to print the first value which is 'postgresql'. but the value is not listed. no error occurs.</p>
  
  <pre><code>[info] Executing: |getEval | myarray = new Array('postgresql','mysql'); | |
  [info] script is: myarray = new Array('postgresql','mysql');
  [info] Executing: |getEval | index=0; | |
  [info] script is: index=0;
  [info] Executing: |while | index &lt; myarray.length; | |
  [info] Executing: |getEval | myarray[0] | mynewvalue |
  [info] script is: myarray[0]
  [info] Executing: |echo | ${mynewvalue} | |
  [info] echo: ${mynewvalue}
  [info] Executing: |getEval | index++; | |
  [info] script is: index++;
  [info] Executing: |endWhile | | |
  [info] Executing: |while | index &lt; myarray.length; | |
  [info] Executing: |getEval | myarray[0] | mynewvalue |
  [info] script is: myarray[0]
  [info] Executing: |echo | ${mynewvalue} | |
  [info] echo: ${mynewvalue}
  [info] Executing: |getEval | index++; | |
  [info] script is: index++;
  [info] Executing: |endWhile | | |
  [info] Executing: |while | index &lt; myarray.length; | | 
  </code></pre>
  
  <p>now again in the same test case i have changed the "getEval | myarray[0]" as "getEval | myarray[${index}] to list the array values by loop index.</p>
  
  <p><img src="https://i.stack.imgur.com/XAch9.png" alt="enter image description here"></p>
  
  <p>now i am getting the following error:</p>
  
  <pre><code>[info] Executing: |getEval | myarray = new Array('postgresql','mysql'); | |
  [info] script is: myarray = new Array('postgresql','mysql');
  [info] Executing: |getEval | index=0; | |
  [info] script is: index=0;
  [info] Executing: |while | index &lt; myarray.length; | |
  [info] Executing: |getEval | myarray[${index}] | mynewvalue |
  [info] script is: myarray[${index}]
  [error] Threw an exception: missing ] in index expression 
  </code></pre>
  
  <p>all i need is echo to print "postgresql" and "mysql" is separate new lines.
  i am very new to selenium plz help me to solve this.  </p>