lua-users home
lua-l archive

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


while bottle_count ~= 0 do
  bottle_count = bottle_take(bottle_count)
end
-- the above works

while true do
    bottle_count = bottle_take(bottle_count)
    if not bottle_count then break end
end
-- this one does not.

Semantics of Lua `not'? Thx ...
--
Duke
** Bottom-posting, text-only is the netiquette way! **