title: How to break outer loops from inner structures that respond break (loops/switch)
body: <p>How to I break an outer loop from within an nested structure that responds to the <code>break</code> statement in Swift?</p>
  
  <p>For example:</p>
  
  <pre><code>while someCondition {
      if someOtherCondition {
          switch (someValue) {
              case 0:     // do something
              case 1:     // exit loop
              case 2...5: // do something else
              default:    break
          }
      } else {
          someCondition = false
      }
  }
  </code></pre>
  
  <p>The <code>break</code> will only get me out of the <code>switch</code>, and in Swift, it has to be used as empty cases are not allowed.  How can I entirely exit the loop from within the <code>switch</code>?</p>