4GL syntax for if button is greyed out

I created a custom button, but I was wondering how would I say if the button is disabled, do this...