Data in the database needs to be toggled

I have an entity backed record and I am calling a process model which updates a field in the DB table using related action when the check box is ticked. When I launch the process model using Related Action, the process updates the value in DB, but I need to update the previous value of the field when the check box is unchecked using the same process..

Can anyone help me out?

  Discussion posts and replies are publicly visible