GCSE Computer Science/Operators
Appearance
There are types of operators that are often used.
Arithmetic Operators
[edit | edit source]Relational Operators
[edit | edit source]Boolean Operators
[edit | edit source]If there are multiple conditions involved, you will need to use the AND or OR operators.
AND will return true only if both conditions are true. If either or both of the conditions are false, the result will be false.
OR will return true if either or both of the conditions are true. The result will only be false if both of the conditions are false.
Another operator, NOT, can be used to reverse the outcome from a comparison.