If / Else
Two branches.
💡 THINK OF IT LIKE…
▸ YOUR TURN
Write: if ($x > 0) { echo "pos"; } else { echo "neg"; }
Tab indent · Shift+Tab outdent · ⌘/Ctrl + Enter submit · auto-pairs ( [ { " '
Two branches.
Write: if ($x > 0) { echo "pos"; } else { echo "neg"; }