if ($test1 = $test2) { $comp = "EQUALS"; } else { $comp = "Does NOT Equal"; }