View Single Post
  #6  
Old 01-02-2010, 04:47 PM
pfyon's Avatar
pfyon
Discordant
 
Join Date: Mar 2009
Location: Ottawa
Posts: 495
Default

Any time you only want one statement to be executed, you should use elsifs. In this case, you can be sure that only one statement will ever be executed (you can't be both a warrior and necro for example, and you won't be more than one lvl at the same time), so you should use elsifs there.

Using elsifs can reduce server load since once one if is found true, it won't check any of the other elsifs.
Reply With Quote