moonscript/tests/outputs/cond.lua

87 lines
1.0 KiB
Lua
Raw Normal View History

2011-05-23 08:16:49 +00:00
local you_cool = false
if cool then
if you_cool then
local _ = one
2011-05-23 08:16:49 +00:00
else
if eatdic then
local _ = yeah
2011-05-23 08:16:49 +00:00
else
local _ = two
_ = three
2011-05-23 08:16:49 +00:00
end
end
else
local _ = no
2011-05-23 08:16:49 +00:00
end
if cool then
local _ = no
2011-05-23 08:16:49 +00:00
end
if cool then
local _ = no
2011-05-23 08:16:49 +00:00
else
local _ = yes
2011-05-23 08:16:49 +00:00
end
if cool then
wow(cool)
else
noso(cool)
end
if working then
if cool then
if cool then
local _ = okay
2011-05-23 08:16:49 +00:00
else
local _ = what
2011-05-23 08:16:49 +00:00
end
else
local _ = nah
2011-05-23 08:16:49 +00:00
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