if (something) { do 'this'; } else { do 'that'; } do (something ? 'this' : 'that');