title: Knockout 'for' binding?
body: <p><strong>Original Question</strong></p>
  
  <p>Does any one have or know of a binding for knockout that would allow behavior similar to a for loop? I can make a foreach do what I want but it would be nice if I didn't have to do it that way.</p>
  
  <p><strong>Edit 2</strong></p>
  
  <p>I am trying to create table rows based on a selection the user makes. In some cases I need x rows where x is the length of an array, other times x represents the largest number rows that will be needed to display n number of arrays.</p>
  
  <p>Ex: image1 is built based on 4 different arrays all which vary in size
  image2 is built from the same array and is doubled in this case.</p>
  
  <p><img src="https://i.stack.imgur.com/yXMBo.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/YPgQc.png" alt="enter image description here"></p>
  
  <pre><code>&lt;div data-bind="if: selectedTab()"&gt;
  &lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;td&gt;
        &lt;div class="a-i-post-All"&gt;&lt;/div&gt;
      &lt;/td&gt;
      &lt;!-- ko foreach:$root.selectedTab().races--&gt;
      &lt;td&gt;
        &lt;input type="checkbox" /&gt;
      &lt;/td&gt;
      &lt;!-- /ko --&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody data-bind="foreach: selectedTab().runners"&gt; // &lt;-- This is an empty array created by the max number of Runners in the selectedTabs array of Races
    &lt;tr&gt;
      &lt;td&gt;
        &lt;div class="a-i-post"&gt;&lt;/div&gt;
      &lt;/td&gt;
      &lt;!-- ko foreach:$root.selectedTab().races--&gt;
      &lt;td&gt;
        &lt;!-- ko if: Runners.length &gt; $parentContext.$index()--&gt;
        &lt;input type="checkbox" /&gt;
        &lt;!-- /ko --&gt;
      &lt;/td&gt;
      &lt;!-- /ko --&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>The above works fine and creates what i want, but i don't like having to turn selectedTab.runners from a number into an empty array just to make it loop n times to create the rows. I am open for suggestions. <strong>Note</strong> As of the time I posted this question originally I have revised this code considerably and am now down to only one occurrence related to my initial question.</p>