View Single Post
01-05-13, 11:22 PM   #18
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Clamsoda View Post
Lua Code:
  1. if IsInRaid() and GetNumGroupMembers() >=1 and <= 10 then
That isn't valid Lua code... you'd need to do:
Code:
if IsInRaid() and GetNumGroupMembers() >=1 and GetNumGroupMembers() <= 10 then
But you're better off just using what you originally posted, so you're not duplicating function calls:
Code:
local n = GetNumGroupMembers()
if IsInRaid() and n > 0 and n < 11 then
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote