Here’s the extracted code:
--
-- a little test for lua
--
nums = {10, 20, 30, 40}
xloop = 4
If xloop == 4 then -- This statement causes error.
for i = 1, xloop do
print(nums[i])
end --do, for
end --if then
I am getting an error on the “if” statement, saying that lua expects an
“=” sign near “xloop”. I’ve tried every combination I know.
CONFIDENTIALITY NOTICE: This E-mail message and all attachments, which
originated from Sealy Management Company Inc, are intended solely for
the use of the intended recipient or entity and may contain legally
privileged and confidential information. If the reader of this message
is not the intended recipient, you are hereby notified that any reading,
disclosure, dissemination, distribution, copying or other use of this
message is strictly prohibited. If you have received this message in
error, please notify the sender of the message immediately and delete
this message and all attachments, including all copies or backups
thereof, from your system. You may also reach us by phone at
205-391-6000. Thank you.