notice that if the 1st record is higher than the second the condition changes?

and if the 2nd record is higher than the first it also changes?