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