single = is an assignment operator
double == is an equality operator
if you used if (country = "usa") then you would assign usa to country rather then check to see what its value is and if it matches "usa".
*Edit Nisheeth is faster poster then me.
Last edited on