You can't do it in one state. In first state, test bool, if it's false do what you want (return to previous state to wait for the trigger or whatever you planned), if it's true, then go to the gameobject compare state. Then you can use bool changed/gameobject changed.