I am trying to write a function that will update a field of an object if a value that was passed in changed versus what\'s already in the object. The closest thing i\'ve got