mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
45 lines
630 B
Plaintext
45 lines
630 B
Plaintext
|
|
switch value
|
|
when "cool"
|
|
print "hello world"
|
|
|
|
|
|
switch value
|
|
when "cool"
|
|
print "hello world"
|
|
else
|
|
print "okay rad"
|
|
|
|
|
|
switch value
|
|
when "cool"
|
|
print "hello world"
|
|
when "yeah"
|
|
[[FFFF]] + [[MMMM]]
|
|
when 2323 + 32434
|
|
print "okay"
|
|
else
|
|
print "okay rad"
|
|
|
|
out = switch value
|
|
when "cool" then print "hello world"
|
|
else print "okay rad"
|
|
|
|
out = switch value
|
|
when "cool" then xxxx
|
|
when "umm" then 34340
|
|
else error "this failed big time"
|
|
|
|
with something
|
|
switch \value!
|
|
when .okay
|
|
"world"
|
|
else
|
|
"yesh"
|
|
|
|
fix this
|
|
call_func switch something
|
|
when 1 then "yes"
|
|
else "no"
|
|
|