Last active
October 23, 2018 18:38
-
-
Save andreaslydemann/6fb41acc63cdf313f71c50735422a3a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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