title: How to create a "loop" statement within an {expect} script?
body: <p>Assumption is, this is the script</p>
  
  <pre><code>#!/usr/bin/expect
  set a "__test__"
  </code></pre>
  
  <p>i would like to create a loop inside this script so it can print the value for</p>
  
  <pre><code> $a
  </code></pre>
  
  <p>with the a number infront of it based on the loop.</p>
  
  <p>so if i wanted it to loop 3 times.. end product would become:</p>
  
  <pre><code> 1:__test__
   2:__test__
   3:__test__
  </code></pre>