A quick note on IF statement terminology in this guide
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, as we have above. If we’re talking about a concept or idea (like in this sentence), “if,” “then,” and other words will be in lowercase.
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.