SyntaxFix
Write A Post
Hire A Developer
Questions
You need to use == or === for comparison. = assigns a new value.
==
===
=
Besides that, using == is pointless when dealing with booleans only. Just use if(foo) instead of if(foo == true).
if(foo)
if(foo == true)