Comparison: asking questions of the code
Comparison operators compare two values and return a bool. That is the foundation of if. The golden rule: do not confuse assignment (=) with equality (==).
Comparison operators compare two values and return a bool. That is the foundation of if. The golden rule: do not confuse assignment (=) with equality (==).