View Single Post
07-17-12, 05:33 PM   #102
Farmbuyer
A Cyclonian
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 43
Originally Posted by Jarod24 View Post
This seems like it's the trend with the newer functions; that they are returning true/false instead of 1/nil.
Makes sense. Lua didn't have a boolean type when those original functions were initially implemented. Even the upstream standard library used 1/nil returns.


IsInRaid() --true/false
IsInGroup() --true/false, will return true if you are in a raid as well as a party
Now that GetNumRaidMembers has morphed into GetNumGroupMembers, I wonder if GetRaidRosterInfo will return valid data while in a "plain" party? I'd like to think so, but haven't seen anything mentioned anywhere. Will try to test... sometime this week.


P.S.: I second Torhal's suggestion of getbeer/setbeer globals.