' == ', It is the comparison operator which compare two numeric value and return TRUE or FALSE.
Example:
if(2==5)
But,
' = ' is the assignment operator which assign one variable value to another variable.
a=12;