lua-users home
lua-l archive

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

Thanks a lot for your quick and prompt reply.

Yogesh Gaur

Message: 4
Date: Mon, 10 Nov 2008 15:41:19 +0100
From: "Jerome Vuarand" <>
Subject: Re: Calling one script inside another
To: "Lua list" <>
Content-Type: text/plain; charset=UTF-8

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)