$name = "john"; $t1 = "john"; $t2 = "john"; if ($name ne $t1 || $t2) { do something }