Writing from one .lua-script into another?

Hello folks,

a little beginner question here.

Is it possible to have one function of one lua script write into an other lua script?
(the other lua script should save the changes)

Smth like

if (this happens)

 then (write THAT in .lua-script2)

end

I really want that this isnt temporary. I need lua-script2 to be permanently changed as long as another function is not activated.

Welcome to our Community Forums.

You can have lua files to talk to each other however you can’t have Corona re-write code after it’s compiled. What you can do is save information and use that information with existing code to cause your code to have the behavior that you want.

Rob

Welcome to our Community Forums.

You can have lua files to talk to each other however you can’t have Corona re-write code after it’s compiled. What you can do is save information and use that information with existing code to cause your code to have the behavior that you want.

Rob