lua-users home
lua-l archive

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


Hi,

In my LUA script, I have to call  a function “main” in other scripts but I do not know how to do that. Please help me.

For example:

In 2nd script:

 

function add(x,y)

            return x+y

end

 

function main()

            print(add(5,3))

end

 

Thanks