PvP - Reverse Harm/Tiger Palm

Hey, very new and i want to make a simple macro that will cast Reverse Harm when clicked and then if its on CD it will cast Tiger Palm instead so i don’t need to swap my keybinds for PvE/PvP. currently what I’ve done doesn’t quite work how i’d like and i can’t seem to find the right script for casting tiger palm if reverse harm is on CD

/cast Reverse Harm
/cast Tiger Palm

Select priority instead of sequential