Group Conditional

/use [group:raid, @boss1, exists ]

I use that a lot for my potions when raiding. Is there a conditional for Mythic+?
or is the best solution to make a 2nd macro only using boss1 without the group conditional and change which macro is on my bar for M+?

While there is: party and group:party, there isn’t anything M+ specific that differentiates an M+ dungeon party from any other party. You could try “faking it” with “known” like if there is a skill you ONLY use in M+ you could do
/use [group:party,known:M+Spell]
Maybe even toss in a @boss1, exists but that only is good if you had no intent popping a pot on a mob and personally I sometimes do that.

https://wowpedia.fandom.com/wiki/Macro_conditionals

Thank you.