Macro for using consumables in order

Hello everyone!
Is it possible to make a macro which may use items in order?
Something like this

/use healthstone (if exists and not on cd, otherwise - next)
/use healing potion (if it also on cd - next)
/use Cavedweller's Delight

and same for potions

/use Fleeting tempered potion (if exists)
/use Tempered potion

Probably it does work but i can’t recognize it by macro icon so have doubts in it

Nope. Macros can’t tell if things are on CD.