A note on nomenclature
In this post, we’ll be using a few different ways of talking about IF statements. Here’s a quick breakdown:
A conditional statement contains conditions and statements, and can consist of multiple IF, THEN, ELSEIF, and ELSE clauses. In some cases, I’ll refer to them by the clauses that they contain.
For example, an IF-THEN statement contains both an IF and a THEN clause.
A clause is the equivalent of a sentence fragment (it can be one IF, one THEN, one ELSE, and so on). Because it’s a clause, it can’t stand on its own.
When talking about a statement or a clause, we’ll use capital letters, like we have above. If we’re talking about a concept or idea (like in this sentence), “if,” “then,” and other words will be in lower case.
These conventions are fairly standard, but there might be some variation. Fortunately, you can usually pick up on what someone’s talking about with context clues.
You’ll see what I mean as we go along.