moonscript/tests/outputs/cond.lua
2011-05-23 01:16:49 -07:00

98 lines
1.1 KiB
Lua

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