In rules you have the ability to check whether a field in a form has been changed by negating node-unchanged:field-xyz = 123.
I want to check whether a field has changed programmatically with the $form and $form_state.
How would you do this?
Thanks in advance.