What do you mean? You are setting the variable you are checking to -999. The first action doesn’t stop the others from being true, so all of them return true. This sets the greatest height as 6 finally, before setting the currentGreatest as that value, 6.
Now I’m confused. Which one is supposed to be higher, the properties, or the variable? If the former, it would still trigger all because of the equal part of the check. If I’m on the same thought as you now, that’s what’s causing your problem. Try with just less than blocks.