what's wrong with this loop syntax?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: what's wrong with this loop syntax?
- From: "Michael Newberry" <mnewberry@...>
- Date: Mon, 8 Jan 2007 13:33:32 -0700
Pardon me for asking a simple question, but why can't I use this syntax?
while (str = S:Next()) ~= nil do
or this syntax:
while (str = S:Next()) and str ~= nil do
where S exists and S:Next() returns a string or nil.
I get this message: `)' expected near `='
Thanks,
Michael