Conditional for casting when ability is on cooldown?

I’m trying to set up a macro to combine Combust/Icy veins with Rune of Power, but I only want Rune of Power to cast if Combust or Icy Veins is on CD . Is this possible? I currently have the macro below, which isn’t an issue with Combust because jump casting will cancel the Rune cast, but that won’t work with Icy Veins and I’d much rather not have Rune cast at all if there’s a way to write a conditional that only has it casting if the other abilities are on CD

#showtooltip
/cast [spec:2] combustion
/cast [spec:3] Icy Veins
/cast Rune of Power
/cast Berserking
/use 14
/use 13

Pins are your friend.