Skip to content

Instantly share code, notes, and snippets.

@ezura
Created January 14, 2018 14:06
Show Gist options
  • Save ezura/a36e7600dacfbe8805d3da9e60afa64b to your computer and use it in GitHub Desktop.
Save ezura/a36e7600dacfbe8805d3da9e60afa64b to your computer and use it in GitHub Desktop.
var v: Int?
if (a?.v = 1) == nil {
// if a is nil, do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment