title: Is There a Range Based case-Like Control Structure
body: <p>Say at run-time I establish some <em>events</em> with occurrence times. Now I have certain <strong>entities</strong> in the system and I need to establish which <strong>entities</strong> were impacted by these <em>events</em>.</p>
  
  <p>So as an example say that I have:</p>
  
  <ul>
  <li><strong>Entity1</strong> intialized at time 1</li>
  <li><em>EventRed</em> occurs at time 3</li>
  <li><strong>Entity2</strong> initialized at time 8</li>
  <li><em>EventBlue</em> occurs at time 9</li>
  <li><em>EventYellow</em> occurs at time 11</li>
  <li><strong>Entity3</strong> initialized at time 13</li>
  </ul>
  
  <p>This should result in:</p>
  
  <ul>
  <li><strong>Entity1</strong> is white</li>
  <li><strong>Entity2</strong> is green</li>
  <li><strong>Entity3</strong> is black</li>
  </ul>
  
  <p>I want a <code>case</code>-like control structure to do this which supports fall through and who's cases are evaluated as "greater than or equal to this value". I'd like syntax like this:</p>
  
  <pre><code>for(auto&amp; i : Entity) {
      ?switch(i.GetInitializedTime()) {
      ?case(Red.GetOccuranceTime()):
          i.AddRed();
      ?case(Blue.GetOccranceTime()):
          i.AddBlue();
      ?case(Yellow.GetOccuranceTime()):
          i.AddYellow();
      }
  }
  </code></pre>
  
  <p>Is there a control structure like this or do I have to juggle all the if statements?</p>