lua-users home
lua-l archive

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


Hello Team,

I am new to lua and I have question regarding how to call a lua script  from another lua script:

Example : 
File 1:    Master.Lua
table2 = {
P1 = 1,
P2 = 0,
P3 = 0,
P4 = 1,
P5 = 0,
P6 = 0,
}
.....


File 2 : Fileopen.lua

table3 = {
Value1 = 1
Value2 = 5 
Value3 = 4
Value4 = 3
}

I want to read the values of table 3 from File 1: Master.lua, like this :
print(table3["Value1"])
Can you help me how to solve if this possible !

Thanks in advance:)

Zulfihar