View Single Post
03-19-13, 11:04 PM   #12
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
Originally Posted by Phanx View Post
Code:
if UnitLevel("player") == MAX_PLAYER_LEVEL_TABLE[GetExpansionLevel()] then
    return
end
Just stick that at the top of the file. You don't need to wrap the rest of the file in an "else-end" block; "return" in the file-level scope stops execution of the rest of the file.
Ah why thank you good sir, or mam (not sure the name is awefully unisexual)
__________________
Tweets YouTube Website
  Reply With Quote