A huge aspect of Turing is comparing values. They are also essential when exiting from loop statements. Proper comparisons need to be made in order for your programs to run as smooth as possible. Comparisons are done in the data type of Boolean, which is either true or false. There are six different Boolean expressions, which are:
= equal to < less than > greater than Not= not equal to <= less than or equal to >= greater than or equal to
The above Boolean expressions go between two values and compares them. These are extremely useful when it comes to exiting out of loop statements because you have to have a Boolean expression comparing two values. If the comparison holds true, then the loop body is not executed, if not, then the loop body is continued.