moonscript/spec/inputs/assign.moon

31 lines
322 B
Plaintext
Raw Normal View History

2011-05-22 05:00:31 +00:00
->
joop = 2302
(hi) ->
d = 100
hi = 1021
a,b,c,d = 1,2,3,4
hello[232], (5+5)[121], hello, x[99] = 100, 200, 300
joop = 12
joop = 2345
a, b = if hello
"hello"
else
"nothing", "yeah"
a, b = if hello
if yeah then "one", "two" else "mmhh"
else
print "the other"
"nothing", "yeah"