lua-users home
lua-l archive

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

2008/11/10 Yogesh Gaur <>:
> 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

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