Originally Posted by Clamsoda
Not that it relates to the OP's issue, but that isn't true Cokedrivers. There is no syntax requirement for either string to come first. Keep in mind that event is just a string passed to the function (at least in this example). You can check for equality between the two in any order.
|
Setting the variable compare on the left side of the if statement does make more sense however as the corresponding
pseudocode would be gramatically correct. It just reads better.
Code:
if event is the same as "ADDON_LOADED" then
dosomething()
end