Locked lesson.
About this lesson
We'll look at the identity operators "Is", and "Is Not".
Exercise files
Download this lesson’s related exercise files.
Identity Operators .docx59 KB Identity Operators - Solution.docx
59 KB
Quick reference
Identity Operators
Use Is and Is Not to compare identities.
When to use
When you need to compare identities, use Is and Is Not.
Instructions
Is and Is Not allow us to compare identities. It is similar to == and !=
variable is variable #returns true if the identities are the same, false if not
variable is not variable #returns true if the identities are not the same, false if they are
Hints & tips
- is and is not compare identities
Lesson notes are only available for subscribers.