Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
if n == 1
|
||||
console.log "one"
|
||||
else if n == 2
|
||||
console.log "two"
|
||||
else
|
||||
console.log "other"
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
n = 1
|
||||
|
||||
switch n
|
||||
when 1
|
||||
console.log "one"
|
||||
when 2, 3
|
||||
console.log "two or three"
|
||||
else
|
||||
console.log "other"
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
s = if condition then "yup" else "nope"
|
||||
|
||||
# alternate form
|
||||
s = \
|
||||
if condition
|
||||
then "yup"
|
||||
else "nope"
|
||||
Loading…
Add table
Add a link
Reference in a new issue