So on my recent team (druids), at level 30 I got everyone Balance as their secondary spec. I wanted to make sure I was always in moonchicken form before I started spewing magic. Also, because I am lazy, I wanted to be able to reuse that macro even if I wasn't specced Balance, but wanted to make sure I wasn't trying to cast spells I no longer knew.

Some googling and I found: the spec conditional! Maybe to some here this is old hat, but to me it was really interesting, so here it is:

Here's a macro I made for casting Moonfire if I'm in moonchicken form and of balance spec, putting myself in moonchicken form if I'm not in it, or just casting Moonfire if I'm not balance spec:

Code:
#showtooltip
/startattack
/cast [spec:2, stance:4] Moonfire; [spec:2] !Moonkin Form; Moonfire
I tried using a simpler macro where I check spec:2 and nostance:4 but that didn't work for me. The # for spec is 1 for your primary spec, 2 for your secondary.

Then I tried to get a bit more clever. Here I wanted to have a spammable castsequence that would intermix Moonfire with longer cast, harder hitting spells:

Code:
#showtooltip
/startattack
/castsequence [spec:2, stance:4] reset=target Starsurge, Moonfire, Moonfire, Starfire, Starfire, Starfire
/cast [spec:2] !Moonkin Form
/castsequence reset=target Moonfire, Wrath, Wrath, Wrath, Wrath, Wrath
In this case, it looks at the first /castsequence line and says if I'm balance and in moonchicken, use those balance spells and blow stuff up. If I'm not, it falls down to the next line, and if I'm balance it tries to put me in moonchicken. If THAT line doesn't get executed, then that means I'm not a balance spec currently, so just fire my very lazy spammable stuff.

It turns out there's also a similar conditional for talents - it's (shockingly): talent.

For this one, you have 2 numbers - first is the row, second is the column. So, to check if you have the level 100 talent all the way to the right, you might do:

Code:
#showtooltip
/cast [talent:6/2] Pulverize; [talent:6/3] Bristling Fur
This will - at least I think - cast Pulverize if you have that, or otherwise cast Bristling Fur.

Anyway, that was something I can't believe I just learned. If you're reading this far - share your tips that you just picked up.