What does comparison operator mean?
An operator that compares two values and gives True or False: == (equal), != (not equal), <, >, <= and >=.
Learn it
- Taught in F2.2 Selection: if Decisions and loops, GCSE
Used in
- F2.4 Nested selection and match
- F5.6 Binary search
- F5.9 Merge sort and comparing algorithms
- F5.10 Project: sort the readings
- F13.7 Where marks are lost
- A1.1 Data types and programming constructs
- A2.3 Recursion versus iteration
- A4.2 Adjacency matrix and adjacency list
- A4.5 Trees
- A4.6 Binary search trees
and 19 more lessons.
Do the lesson in the simulator