[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: "IF" problem with "arg[n]"
- From: "Jeff Wise" <jwise@...>
- Date: Tue, 28 Aug 2007 11:50:24 -0500
The following program will not compile. I can not figure this out. The
last ("IF") statement is where the problem lies. The compile error
essentially says "expecting '=' near 'arg'".
-- dummy 3
-- receive parms, print them
-- Invoke program : lua dummy3 parm1 parm2
print("Hello, world! dummy3")
print("Arg1 is ==> ", arg)
print("Arg2 is ==> ", arg)
local a = arg
local b = arg
print("Arg1 is ", a)
print("Arg2 is ", b)
If arg == nil then print("Arg1 is nil") end
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.