Code:
($NEWVALUE = 100 | $NEWVALUE = 0) && $NEWVALUE <> $OLDVALUE
The logic is if the new value is 0 or 100, and the new value is different from the old one