if ($x >= 1 && $x <= 10) { print "Correct match"; } else { print "Incorrect"; }