Skip to content

Instantly share code, notes, and snippets.

@alexj70
Last active April 22, 2017 19:51
Show Gist options
  • Save alexj70/15d1fce423030bd14add78a666585a70 to your computer and use it in GitHub Desktop.
Save alexj70/15d1fce423030bd14add78a666585a70 to your computer and use it in GitHub Desktop.
Range in if statement
//////////////////////////////////
if case 200 ... 299 = statusCode {
// do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment