chkn / AluminumLua

NOTE: THIS WAS A TOY PROJECT AND IS NOT MAINTAINED
100 stars 13 forks source link

Nested if/then/else doesn't work #14

Open dhasenan opened 10 years ago

dhasenan commented 10 years ago
if false then
    if false then
        print("two falses are true")
    else
        print("one false is true")
    end
else
    print("at least one false is false")
end

Expected output: at least one false is true

Actual output: Unhandled Exception: AluminumLua.LuaException: Error in foo.lua(9,7): Expected 'then'

iggyvolz commented 10 years ago

You might have to write: else then Or just do: if not (whatever) then instead of else until this is resolved.