moonscript/tests/outputs/cond.lua
2011-07-16 17:14:57 -07:00

87 lines
1.0 KiB
Lua

local you_cool = false
if cool then
if you_cool then
local _ = one
else
if eatdic then
local _ = yeah
else
local _ = two
_ = three
end
end
else
local _ = no
end
if cool then
local _ = no
end
if cool then
local _ = no
else
local _ = yes
end
if cool then
wow(cool)
else
noso(cool)
end
if working then
if cool then
if cool then
local _ = okay
else
local _ = what
end
else
local _ = nah
end
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