With the tutorial, don't forget that you don't always have to use '=='.
For example, you can compare numbers:
if 0 < 1 then (If 0 is smaller than 1 then...)
if 0 <= 1 then (If 0 is smaller than or equal to 1 then...)
if 1 > 0 then (If 1 is smaller than 0 then...)
if 1 >= 0 then (If 1 is smaller than or equal to 0 then...)
You can do a whole bunch of things with it.