Logical operator NOT
A logical operator that reverses a condition: NOT TRUE is FALSE and NOT FALSE is TRUE. For example, NOT (Score >= 50) is TRUE only when Score is below 50.
Understanding Logical operator NOT in IGCSE Computer Science Paper 2
What it does: The OUTPUT runs when Found is FALSE, because NOT FALSE is TRUE. NOT (Age = 18) and Age <> 18 are both TRUE when Age is anything other than 18. NOT reverses a Boolean value, so NOT TRUE gives FALSE and NOT FALSE gives TRUE. The opposite of 'greater than or equal to 50' is 'less than 50'. Score <= 50 would wrongly include 50 itself. NOT (Age = 18) is TRUE for every value except 18, which is exactly what <> means. Age < 18 misses ages above 18. NOT goes in front of the condition it reverses. It cannot be placed in the middle of a comparison.
Common mistakes: NOT is missing. Without it, Fail is TRUE when the score is 50 or more, which is the opposite of what is wanted. It should be Fail <- NOT (Score >= 50). An IF statement must have THEN after its condition. The line should be IF NOT (Age >= 18) THEN.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 358–368) and word search (Modules 358–378).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
NOTFill in the Blanks
Spot the Error
Student with a class code? Join your class →