Skip to content

Instantly share code, notes, and snippets.

@andreaslydemann
Last active October 23, 2018 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreaslydemann/6fb41acc63cdf313f71c50735422a3a3 to your computer and use it in GitHub Desktop.
Save andreaslydemann/6fb41acc63cdf313f71c50735422a3a3 to your computer and use it in GitHub Desktop.
let myFirstOptional: Int? = 10
let mySecondOptional: Int? = 20
if let myFirstInt = myFirstOptional, let mySecondInt = mySecondOptional {
print("myFirstInt has a value of \(myFirstInt) and mySecondInt has a value of \(mySecondInt).")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment