Converting analog to digital

So it's just a weird way of doing if, then, else. That makes sense.

Basically what you are saying is that what I'm suggesting will work, but that this is a better way to program it. Is that right?