title: Series of variables in a loop using index
body: <p>I have a number of variables that I want to update as follows (this works ok)</p>
  
  <pre><code>answer1Yes = answer1Yes+1
  answer2Yes = answer2Yes+1
  answer3Yes = answer3Yes+1
  answer4Yes = answer4Yes+1
  answer5Yes = answer5Yes+1
  </code></pre>
  
  <p>I’m trying to put this into a loop as follows (this doesn’t work)</p>
  
  <pre><code>for index in 1...5 {
      answer(index)Yes = answer(index)Yes+1
      }
  </code></pre>
  
  <p>Can you please advise correct syntax for this.</p>