I want to update x with a new value only when the new value is greater. What is the best way to write this? All of these seem a little long and messy.
x = Mat