Script Dokumentation
Can you help me plz
I wanna fix some bugs but i need a Documentation of the Script Language WoW is using. I would prefer a universal answer.... but for now ist would help to know which is the correct form of : if temp != NULL then ....... or if temp <> nil then or something like that... Thx a lot Billi Billi is online now Edit/Delete Message |
Reference for Lua: http://www.lua.org/manual/5.0/ (Anything to do with file input/output and almost all os commands are disabled/inactive.)
correct form of that would be: if temp ~= nil then -- do stuff end or if temp then -- do stuff end In Lua, 0 is not nil. This took some getting used to for me. The above will be true for all of these: temp=true, temp=1, temp="a string", temp=0, temp={}, temp="". The only cases when it wouldn't be true is: temp=false, temp=nil (meaning temp is not defined yet.) |
Thx a lot
was a great help :D
|
All times are GMT -6. The time now is 09:23 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI