View Single Post
03-17-09, 05:07 PM   #922
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Originally Posted by PProvost View Post
So a tag that doesn't produce text should return nil or not return at all instead of returning an empty string?

I've been using "" and it hasn't failed me so far.
oUF uses the return of the tag to determine if the function executed successfully or not. By returning nothing you tell oUF that it shouldn't apply preppend or append any information to the tag if that's defined.