use strict;
$a = 8; #Try using 7 and see how second loop does not evaluate correctly
## Examples
# $a = 44 evaluates ok for both options
# $a = 33 evaluates ok for both options
# $a = 3 does not evalute correctly on Option Not Equal
# $a = 77 does not evalute correctly on Option Not Equal
# $a = 8 does not evalute correctly on Option Not Equal
## Option Equal
if (($a == 3) || ($a == 77) || ($a == 8))
{
print "$a must be a 3 77 or 8\n";
}
else
{
print "$a is not a 3 77 or 8\n";
}
print "\n";
## Option Not Equal
if (($a != 3) || ($a != 77) || ($a != 8))
{
print "$a is not a 3 77 or 8\n";
}
else
{
print "$a is a 3 77 or 8\n";
}