Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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