If you want to check if a specific field of a structure has changed, you can compare the old and new value of that field using the isequal function. Here's an example:
main.m193 chars7 lines
In this example, the code checks if the value of field1 has changed between the old_struct and new_struct. If it has changed, then it displays a message.
Note that if the field doesn't exist in the structure, isequal will return false. If you want to make sure the field exists, you can use the isfield function.
gistlibby LogSnag