If/Else statements are used to execute code based on a condition. If the condition is true, the code inside the if block is executed. If the condition is false, the code inside the else block is executed.
The else block is optional. If it is not present, the code inside the if block will be executed if the condition is true, and nothing will be executed if the condition is false.
Logical Operators
Logical operators can be used to combine multiple conditions. The following logical operators are supported:
&& (and): Returns true if both conditions are true.
|| (or): Returns true if at least one condition is true.
! (not): Returns true if the condition is false.
By default, the ! operator has the highest precedence, followed by &&, and then ||. Parentheses can be used to change the order of operations.