I want to check my variable $id is equal 497 or equal 200 , if $id not equal 497 or $id not equal 200 then mail, but when i run the example as below, I set $id =497 by hand , but run the code ,it's print "not equal\n";
my $id = 497; if($id != 497 || $id != 200) { print "not equal\n"; } else { print "equal , not to mail\n"; }
!($x || $y) == !$x && !$y, and!($x && $y) == !$x || !$y.