title: How to handle arrays in Selenium IDE 3.7.4
body: <p>In <strong>Selenium IDE 3.7.4</strong> I'd like to make a loop to do click on several links that have similar Xpath. For this I think in create an array
  but trying with a simple array with the settings (Command,Target, Value) as below is not working.</p>
  
  <pre><code>+----------------+---------------------------------------+---------+
  | Command        | Target                                | Value   |
  +----------------+---------------------------------------+---------+
  | execute script | var a = "A|B|C".split("|"); return a; | arr     |
  +----------------+---------------------------------------+---------+
  | execute script | return 0                              | counter |
  +----------------+---------------------------------------+---------+
  | while          | ${counter} &lt; 3                        |         |
  +----------------+---------------------------------------+---------+
  | echo           | "Element = " + ${arr[${counter}]}     |         |
  +----------------+---------------------------------------+---------+
  | execute script | return ${counter} + 1                 | counter |
  +----------------+---------------------------------------+---------+
  | end            |                                       |         |
  +----------------+---------------------------------------+---------+
  </code></pre>
  
  <p>The expected output for this test would be:</p>
  
  <pre><code>Element = A
  Element = B
  Element = C
  </code></pre>
  
  <p>And I'm getting this output:</p>
  
  <pre><code>"Element = " + ${arr[${counter}]}
  "Element = " + ${arr[${counter}]}
  "Element = " + ${arr[${counter}]}
  </code></pre>
  
  <p>How can I handle arrays and print their elements in Selenium IDE? I only found some question <a href="https://stackoverflow.com/questions/14955000/selenium-ide-loop-through-array-variables">here</a> regarding this but with a older version
  of Selenium IDE that had other commands like <code>getEval</code> that doesn't exist in latest version.</p>
  
  <p>Thanks in advance for any help.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Thanks to Jim's answer I was able to complete a working array example on Selenium IDE. The code is like below </p>
  
  <pre><code>{
    "version": "2.0",
    "name": "Array",
    "url": "https://www.seleniumhq.org",
    "tests": [{
      "name": "Untitled",
      "commands": [{
        "command": "open",
        "target": "https://www.seleniumhq.org",
        "targets": [],
        "value": ""
      }, {
        "command": "executeScript",
        "target": "var a = \"projects|download|documentation\".split(\"|\"); return a;",
        "targets": [],
        "value": "arr"
      }, {
        "command": "executeScript",
        "target": "return 0",
        "targets": [],
        "value": "counter"
      }, {
        "command": "pause",
        "target": "4000",
        "targets": [],
        "value": ""
      }, {
        "command": "while",
        "target": "${counter} &lt; 3",
        "targets": [],
        "value": "counter"
      }, {
        "command": "executeScript",
        "target": "return \"css=#menu_\" + ${arr}[${counter}] + \" &gt; a\";",
        "targets": [],
        "value": "output"
      }, {
        "command": "click",
        "target": "${output}",
        "targets": [],
        "value": ""
      }, {
        "command": "pause",
        "target": "3000",
        "targets": [],
        "value": ""
      }, {
        "command": "executeScript",
        "target": "return ${counter} + 1;",
        "targets": [],
        "value": "counter"
      }, {
        "command": "end",
        "target": "",
        "targets": [],
        "value": ""
      }]
    }],
    "suites": [{
      "name": "Default Suite",
      "persistSession": false,
      "parallel": false,
      "timeout": 300,
      "tests": ["78b402ba-8dfa-47d6-bee8-7a0d928db6f1"]
    }],
    "urls": ["https://www.seleniumhq.org/"],
    "plugins": []
  }
  </code></pre>