how to pass and receive value in Lua to another Lua?
coronasdk, lua
Solution
Assign the value to the global table (`_G`), like this:
_G.value = "Hello WOrld"
In another script, you can then do this:
value = _G.value
Problem
how can I pass a value from `a.lua` to `b.lua`? let us say that in my `a.lua` i have this code of variable. ``` local value = "Hello WOrld!" director:changeScene ("b") ``` my problem is that how can i pass `value` from `a.lua` to `b.lua`? thanks in advance....