AluminumLua icon indicating copy to clipboard operation
AluminumLua copied to clipboard

Nested if/then/else doesn't work

Open dhasenan opened this issue 12 years ago • 1 comments

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'

dhasenan avatar Nov 17 '13 04:11 dhasenan

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

iggyvolz avatar Sep 14 '14 20:09 iggyvolz