Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 3

My lua code in showing this error

push= require 'push'


Attempt to global index 'push'(a boolean value)
2 Replies
Commander Lvl 3
Message 2 of 3

Re: My lua code in showing this error

Hi @BlueAdmiral,

 

To get the help you need it would be helpful to gives us a bit more context. Maybe you have a link to a repository for us, or can post a Gist containing the code?


- Mark
Pilot Lvl 3
Message 3 of 3

Re: My lua code in showing this error

You might want to read up on how the require statement works, e.g. lua modules

 

Your line probably should read as follows:

require "push"

Please follow-up to let us know how you made out. For good karma, mark a reply as the answer if it helped!