I want compare two variables, that are strings, but I am getting an error.
instead of using the == sign, more safer use the === sign when compare, the code that you post is work well
==
===