Scales can be used to compare things. If two numbers are compared then the side with the larger number will tilt down.
Try experimenting with this scale:
Robots can use scales to compare things. A robot will remember whether an action involved the left or right side the scale. If a scale is in the conditions of a robot then it matches only if the corresponding scale is tilted the same way.
Scales represent a way to test if something is greater than or less than something else. Nearly all programming languages include operators for testing if a number if greater than another.