title: cant create arrays in while loop or if statement?
body: <p>when I try to create arrays in my script I get errors.
  <code>id[1]=string2;</code> would generate error <code>id[1]=string2: not found</code></p>
  
  <p>I'm guessing it has something to do with the fact that im in a if statement or while loop since the use <code>[]</code>? I'm running a VM so attached is a pic of the script thus far the array at top <code>a[1]=string;</code> generates no errors but the one in the logic <code>id[1]=string2;</code> does.</p>
  
  <p><img src="https://i.stack.imgur.com/4kIPV.png" alt="enter image description here"></p>