Originally Posted by MunkDev
Lua Code:
-- ... if (returnView) then -- An if statement is like a true and false, a yes or no. SaveView(5) end -- If statements must end on the same "line" they start per beginning. Example here. They line up vertically. That is a "Block."
No, they don't. end means it's the end of the scope, but Lua is not sensitive to indentation. You can just as easily write your entire addon on one line and it would still work, just be a clusterfuck to read and understand.
Lua Code:
if (returnView) then SaveView(5) end
|
Thank you! I did not know that.