title: Can I use the range operator with if statement in Swift?
body: <p>Is it possible to use the range operator <code>...</code> and <code>..&lt;</code> with if statement. Maye something like this:</p>
  
  <pre><code>let statusCode = 204
  if statusCode in 200 ..&lt; 299 {
    NSLog("Success")
  }
  </code></pre>