The logic blocks can be used to test the veracity of statements, they are very useful in if.then.else statements. Look at possible ways to use these blocks below.


Logic blocks can used to see if a boolean variable is currently true or false. You can ask things like expression shown below, but it is actually redundant.

This is preferred.
Other boolean tests involve inequality. In the test below, we ask if an index is less than the length of a list. A true or false is returned. Thus, we call it a boolean expression.
Here is an example of a compound condition - as two conditions are combined with a logical "and".