View Single Post
05-08-14, 09:52 AM   #7
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by Clamsoda View Post
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
  Reply With Quote