The double equals doesn't behave like other languages. Triple equals is almost always what you acutally want.