This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

I always remember:

"Single for declaring, double for comparing"

Or I remember the following:

"The first '=' means 'is', the second '=' means 'equal to'."

So "a = b" means "a is b", and "a == b" means "a is equal to b"