GetPartyLeaderIndex() - Returns the index of the party leader (1-4) if not yourself.

Would that work in a raid aswell? I am thinking about creating a macro which autowhispers the raidleader, asking him to give me leader (good for ex. AB, so I can put me chars in the same group).
The reason im asking is because I cannot test it atm.