Autopilot disengaged event, what I am doing wrong?

thanks! yes, when both are True the state = “Approach Mode”

you are correct , I actually had Approach On / Off working but it doesn’t change the button so I thought it wasn’t working. But I can see on the PFD that the mode is changing. The button state must be handled separately … thanks again …