lua-users home
lua-l archive

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


2008/11/10 Yogesh Gaur <yogeshgaur.83@gmail.com>:
> Please help me out if any of the fellow users know the way to call one Lua
> script inside the other script.

As Sam Roberts suggested use dofile. For example:

-- init.lua
value = 42
dofile("main.lua")

-- main.lua
print("the value is:", value)