Question about GSE Macro

Is it possible to create a macro that only use an ability if a other ability is on cooldown ? Like on my DH i only want Essence break if Blade Dance is on cooldown if not Essence break will not cast until blade dance is available. sry for my bad english hope some1 understand me :stuck_out_tongue: