You would implement that on the To site control's validate() or modified() methods.
Both controls must be set as AutoDeclaration = Yes in the properties, and then you can compare their values if they are equal, and if yes, throw a checkFailed() or error() depending on how you want to handle this.