'LinKin Posted September 19, 2014 Posted September 19, 2014 Hello, getBoundKeys returns false if no keys are bound to some control name. So, when it returns false, can I make the following: table.insert(myTable, "Accelerate", getBoundKeys("accelerate") or "") so that it inserts in the second column of "myTable" the empty string ("") ?
Saml1er Posted September 19, 2014 Posted September 19, 2014 local a = false a = a or " " print ( type (a) ) --> string so YES!
'LinKin Posted September 20, 2014 Author Posted September 20, 2014 How to test LUA code online? I can't test it in-game.
ixjf Posted September 20, 2014 Posted September 20, 2014 ... or download the Lua binaries for Windows, which isn't all that heavy.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now