In many ways, conditional logic—deciding which action to take based on user input, external conditions, or other information—is the heart of programming.
All conditional logic starts with a condition: a simple expression that can be evaluated to true or false. Your code can then make a decision to execute different logic depending on the outcome of the condition. To build a condition, you can use any combination of literal values or variables along with logical operators. Table 2-7 lists the basic logical operators.
|!=||Not equal to.|
|<=||Less than or equal to.|
|>=||Greater than or equal to.|
|&&||Logical and (evaluates to true only if both expressions ...|