WoW Macro Help Buff Sequence

Hi I am wondering if its possible to add a sequence that will buff when certain buff is no longer active