LanguageControl FlowConditionsOn this pageConditions if condition if foo == 0 { // Do something}else if foo < 0 { // Do something else}else { // foo is greater than 0} Ternary operator let foo = bar == 1 ? true : false;