Example 1 $bar) { echo "$foo is greater than $bar."; } else { echo "$foo is less than $bar."; } ?> Example 2 = $lower) && ($needle <= $upper)) { echo "The needle is in the haystack."; } elseif (($needle <= $lower) || ($needle >= $upper)) { echo "The needle is outside of the haystack."; } ?>