Druid stance macro - help

I’m looking for a macro that will cast bear form. If I’m already in bear form, it should put me back in caster form. That’s it.

I found this macro online, but if I cast it when I’m already in bear form it just re-casts bear form again. It does not return me to caster form. Any help would be appreciated.

#showtooltip
/cast [nostance] Bear Form
/cancelform [stance]

Your original macro works for me, are you sure you have it on your bars?

You could also try flipping the order.

#showtooltip Bear Form(Shapeshift)
/cancelform [form:1]
/cast [noform:1] Bear Form(Shapeshift)

The original macro works for me now as well, which makes me question my own sanity. Thanks for your response!