Record field are not a variable! And variables are normally used internally in a function or the like, where it is under control of the developer. So I don’t really see the need.
For AL (or C/AL for that matter) there is no mechanism to track whether a particular variable has changed value. This could happen for instance when you send a variable into a function as a parameter by reference, and you want to see if the function has modified the value. You would need to create another variable, save your variable value into the new variable, and then after the function call you can compare the two.
Answers
if rec.value <> xrec.value then
DoMyBitOfCustomCode();
And depending on your version you can have event subscriber for that
And variables are normally used internally in a function or the like, where it is under control of the developer.
So I don’t really see the need.
RIS Plus, LLC