Tutorial 14: Comparison Operators


Your Example

Equal ==

Your age is equal to 25.32

Identical ===

Your favourite number is a string called 1!

Not Equal !=

Excuse me, señor. You must not be from around here.

Not Identical !==

You are not exactly the string "25.32"

Less Than <

You haven't quite made it to lesson 15, yet.

Greater Than >

You've made it past lesson 10!

Less Than or Equal To <=

14 is less than or equal to 14.

Greater Than or Equal To >=

14 is greater than or equal to 4.

Back to the lecture
©2025 - Brad Hussey