it should pop an echo if $test is minor than 0, larger than 1.
Code: Select all
$test = "-2";
if ($test >= 0 && $test <= 1) { echo "in the boundaries of 0 - 1 = $test"; }
elseif ($test < 0 && $test > 1) { echo "out of range! value: $test"; } // should echo!!!
elseif ($test > 1) { echo "OUT of range = > 1! value: $test"; } // this pops ok according to $test value
elseif ($test < 0) { echo "out of RANGE = < 0! value: $test"; } // this one too
XYplorer Beta Club