'LinKin Posted September 19, 2014 Share 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 ("") ? Link to comment
Saml1er Posted September 19, 2014 Share Posted September 19, 2014 local a = false a = a or " " print ( type (a) ) --> string so YES! Link to comment
Callum Posted September 19, 2014 Share Posted September 19, 2014 Can't have been that hard to test. Link to comment
'LinKin Posted September 20, 2014 Author Share Posted September 20, 2014 How to test LUA code online? I can't test it in-game. Link to comment
Castillo Posted September 20, 2014 Share Posted September 20, 2014 http://www.lua.org/cgi-bin/demo Link to comment
ixjf Posted September 20, 2014 Share Posted September 20, 2014 ... or download the Lua binaries for Windows, which isn't all that heavy. Link to comment
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