Your most basic and common decision-making statement is the if command. It always takes this form:
IF (some test that returns a boolean true/false) THEN (do something)
So you have a test and a something(s) to do if the test resolves to true. This is where we use the comparitors from last chapter:
IF x=5 THEN do something
Continue reading “Programming Basics for Duncan part III: If and Loops”
