Macro help

So, I want to make a macro for my potions.
When in a BG or Arena, I want the tooltip to be my ‘“Third Wind” Potion’
BUT, when out of a BG or Arena OR I’m out of ‘“Third Wind” Potion’, I want it to be my ‘Abyssal Healing Potion’

Right now the macro I’m using is;

#showtooltip
/use “Third Wind” Potion
/use Abyssal Healing Potion

The problem is that even when Im out of Third Wind Potions, it shows its tooltip instead of the Abyssal Healing Potion. What do I do?

I am fairly sure this can’t be done with a simple macro. To get access to what zone you are in your macro would need to make a WoW API call for your current zone info and I don’t think, could be wrong, this would fit in the 255 character limit.

A WoW API call for the zone could be something like this:
/run print(GetMinimapZoneText())
This will print out the zone text from your minimap in chat if you copy paste it into your chat window.

You would need someone more familiar with WoW scripts than me to tell you if an if-else statement in a macro could use that info to pick the pot you wanted to use at the time.

Had a similar issue a while back. The end solution and feedback with options can be found here.