Last active
October 10, 2015 08:39
-
-
Save dolphinsue319/e689cd04f4d21ada547d to your computer and use it in GitHub Desktop.
常見的大於、小於及等於零的寫法
This file contains hidden or 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 x = 1 | |
if x > 0 { | |
print("> 0") | |
} else if x < 0 { | |
print("< 0") | |
} else { | |
print("== 0") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment