Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
let x = if (1 < 2) {
|
||||
":)"
|
||||
} else { // The else clause is required here as x is a string
|
||||
":("
|
||||
}
|
||||
|
||||
if (2 > 3) {
|
||||
print("This should never execute.")
|
||||
} // We can omit the else clause here
|
||||
|
||||
// We use else if for chaining
|
||||
if (1 > 2) {
|
||||
print("1 is less than 2")
|
||||
} else if (2 == 3) {
|
||||
print("2 is 3")
|
||||
} else {
|
||||
print("This should always execute.")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue