I am writing a function to check if the field has changeed and update the database.
Eg. on the orders table, i want to show if a salesperson has updated a field and store that in the orders_history table.
I can write most of the code myself but how do I compare the previous fienld value to the new value?
For example, I know fields are referred to with brackets like {fieldname} in script.
Is there a way to check if {fieldname} orginal value == {fieldname} new value?
Am I making sense?