Cast if buff is up

I remember vaguely that there was some way to do this with GSE? I dont think I ever got it to work or am I miss remembering?

Watch Reruns of WoW Lazy Macros Creator (Lutechi) Live @ 11PM EST