Is it possible to use the range operator ... and ..< with if statement. Maye something like this:

let statusCode = 204
if statusCode in 200 ..< 299 {
  NSLog("Success")
}

6 Answers
6

Leave a Reply

Your email address will not be published. Required fields are marked *