The devs deliberately disallow nearly all conditionals, like “skip this if …”, in macros. They don’t want people automating their gameplay.
Ãnna was sending you to Curseforge. Curseforge is the main place where we all get our addons. It is safe - well, as safe as anything on the Internet - and what you download there will be within Blizzard’s Terms of Service.
If you don’t know about addons, you should learn. If you go to YouTube and search for wow addons you will get far more information than anyone could absorb in one lifetime, about a zillion addons. If you are new to addons, here’s a post I made a couple of years ago in answer to a new player: Any UI mod advisable? - #2 by Gráinne-earthen-ring
Gnome Sequencer Enhanced is the main addon that people use to reach the limits of what you are allowed to do with macros. You can look it up on YouTube; there are video demonstrations of how to use it. While it can’t breach the conditions the devs have written in, it comes as close as possible.