javascript boolean if only one condition is true code example Example: single if statement js true false condition ? exprIfTrue : exprIfFalse