Created
October 2, 2022 14:38
-
-
Save AhmedMenaim/b1fea20ed75e1a99bde8aa49a0ccda05 to your computer and use it in GitHub Desktop.
Menaim Academy - Swift Course - Conditional Statements - If else
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
import UIKit | |
var greeting = "Hello, playground" | |
let number = 6 | |
if number == 5 { // equal comparison | |
print ("Number is correct") | |
} | |
else if number == 6 { | |
print("\(number) & Number is correct") | |
} | |
else { | |
print("Number is incorrect") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment