Hex macro with [known:] context (Solved)

I want to add Hex here to the end of my offensive cast, but if I don’t have it talented, not display the ability. I don’t know what number to use at #?

#showtooltip
/use [mod:shift,known:#?]Hex; [mod:alt]Chain lightning;Lightning Bolt

When I use just the text “Hex” by itself, the ability defaults to Hex(Compy). The variants are always known, so will always be displayed even though the cast will fail.


Context
I’m trying to condense my action buttons by using the shift modifier to add a third context to my macros. Normally, I have only ever had two context using the alt modifier. But with so many abilities being dependent on known talents

This is an example of juggling a War-Mode ability Static Field Totem and two Talent abilities Wind Rush Totem and Earthgrab Totem which replaces Earthbind Totem.

#showtooltip
/use [mod:shift,@cursor,known:355580]Static Field Totem;[mod:alt,@cursor,known:192077]Wind Rush Totem;[@cursor]Earthbind Totem

Okay, solved
kind of a combination of info from

and finding the right spellID:51514

#showtooltip
/use [mod:shift,known:51514]Hex(Zandalari Tendonripper);[mod:alt]Chain lightning;Lightning Bolt