Not overly complicated, but not so obvious…
Of course, you need to be comparing integers and you need to have a range in which the comparison would make sense.