qaisjp Posted May 24, 2011 Share Posted May 24, 2011 1) Is hm = { jaja = "hi" } the same as hm = { ["jaja"] = "hi" } 2) will hm ={ jaja = "jo" } function lolo()if hm.jaja == hm["jaja"] then return true end end return true? Link to comment
Castillo Posted May 24, 2011 Share Posted May 24, 2011 hm ={ jaja = "jo" } function lolo()if hm.jaja == hm["jaja"] then return true end end I have tested this and yes, indeed returns true. Link to comment
qaisjp Posted May 24, 2011 Author Share Posted May 24, 2011 +1 that answers both questions. Thanks Cast Link to comment
proracer Posted May 24, 2011 Share Posted May 24, 2011 Yes, also you can download Lua 5.1 for Windows and use the Lua Command line to help you testing stuff you wanna test quickly. 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