Help for this page
Select Code to Download
Select
or
download this
y = 4 - (x > 3) * 2
Select
or
download this
$y = $x > 3 ? 6 : 4;