Give 6 examples of comparison operators
, =, >=, <=, !=
What data type do comparison expressions evaluate to?
Boolean (true or false)
What is the purpose of an if statement?
Evaluates (or checks) a condition.
Is else required in order to use an if statement?
no
Describe the syntax (structure) of an if statement.
Keyword if, condition, opening curly brace, code to be executed if true, closing curly brace
What are the three logical operators?
&&, ||, ! (logical and) (logical or) (logical not)
How do you compare two different expressions in the same condition?
One expression and then a logical operator and then another expression.