lua-users home
lua-l archive

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


Hi,

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[1]'".

Any ideas?

--
--  dummy 3
--          receive parms, print them
--
--   Invoke program :  lua dummy3 parm1 parm2
--
    print("Hello, world!    dummy3")
    print("Arg1 is ==> ", arg[1])
    print("Arg2 is ==> ", arg[2])
    
    local a = arg[1]
    local b = arg[2]
    
    print("Arg1 is ", a)
    print("Arg2 is ", b)
    
    If arg[1] == 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.