Conditional Logic

In its simplest form, a conditional statement is an IF-THEN statement and consists of two parts:

  • Hypothesis: The hypothesis is preceded by an IF.

  • Conclusion: The conclusion can be preceded by a THEN.

The IF-THEN statement is typically formatted like this:

IF condition, THEN statement.

IF is the beginning of the IF-THEN statement, and THEN identifies what actions should be taken if the condition in the IF statement is met. For example:

If the power type is not propane, then no propane tank should be selected.