moonscript/tests/inputs/cond.moon
2011-05-23 01:16:49 -07:00

64 lines
825 B
Plaintext

you_cool = false
if cool
if you_cool
one
else if eatdic
yeah
else
two
three
else
no
if cool then no
if cool then no else yes
if cool then wow cool else
noso cool
if working
if cool then if cool then okay else what else nah
while true do print "name"
while 5 + 5
print "okay world"
working man
while also do
i work too
"okay"
if yeah then no day elseif cool me then okay ya else u way
if yeah then no dad else if cool you then okay bah else p way
if (->)() then what ever
if nil then flip me else
it be,rad
if things great then no way elseif okay sure
what here
if things then no chance
elseif okay
what now
if things
yes man
elseif okay person then hi there else hmm sure
if lets go
print "greetings"
elseif "just us"
print "will smith" else show 5555555