View Single Post
08-15-15, 08:45 PM   #15
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
There's also the option of

Code:
(UnitName("player"))
That will only evaluate the first return value, but it's a bit non-obvious if you're looking at the code months later.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote