What do the logical operators AND, OR, XOR and NOT do?

AND (both conditions on either side of the AND operation MUST be satisfied for the IF function to work)

OR (either condition on each side of the OR operation MUST be satisfied for the IF function to work)

NOT (used when something needs to be displayed UNLESS a value is a certain amount/type/name etc.)

XOR (used when exclusively ONE of the conditions has to be met – not both! This is where XOR and OR differ.)

Chris D. A Level Computing tutor, A Level Maths tutor, GCSE Maths tut...

1 year ago

Answered by Chris, an A Level Computing tutor with MyTutor

Still stuck? Get one-to-one help from a personally interviewed subject specialist


£20 /hr

George G.

Degree: MEng Software Engineering (Masters) - Southampton University

Subjects offered:Computing


“Computer-Scientist, Software-Engineer, Problem Solver, Life Hacker, Out-of-the-box Thinker, ”

£20 /hr

Thomas P.

Degree: Computing (Bachelors) - Imperial College London University

Subjects offered:Computing, Physics+ 3 more

Further Mathematics
-Personal Statements-

“Computing student at Imperial College London, particularly enjoying the discreet maths course here. A*A*AA in Maths, Further Maths, Physics and Computing.”

MyTutor guarantee

|  2 completed tutorials

£36 /hr

Dario P.

Degree: Computer Science (Masters) - Manchester University

Subjects offered:Computing, Maths+ 2 more


“I am Computer Science Russell Group student with experience in research and industry and strong mathematical skills, I enjoy tutoring and helping students consolidate their knowledge.”

About the author

Chris D.

Currently unavailable: for regular students

Degree: Computer Science (with placement) (Bachelors) - Bath University

Subjects offered:Computing, Physics+ 1 more


“First year Computer Science Student, University of BathA*A*A*A in A level Mathematics, Physics, Computing and History.I'd love to pass on my knowledge of my A level subjects to anyone who needs help!I have a wealth of resources an...”

You may also like...

Posts by Chris

Explain the Principle of Moments.

Explain the process of annihilation?

What do the logical operators AND, OR, XOR and NOT do?

What is an equipotential in an electric/gravitational field?

Other A Level Computing questions

What is method "Overloading" in object-oriented programming (OOP) ?

When data is transmitted over long distances, latency can become an issue. Explain what latency is.

How to represent a negative decimal number using 8-bit binary two's complement ?

What is the difference between local and global variables?

View A Level Computing tutors

We use cookies to improve your site experience. By continuing to use this website, we'll assume that you're OK with this. Dismiss