lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 16/06/2007, at 9:20 PM, Andreas Rozek wrote:

 local Result = false;  -- you could also use "nil" here
    Result = Result or "anything else";
  io.stdout:write("Result = '"..tostring(Result).."'");

What if you write:

 local Result = false;  -- you could also use "nil" here
  io.stdout:write("Result = '"..tostring(Result).."'");

The "or" seems to work from your post, so maybe it is not making the local variable correctly.

- Nick