if statement to ternary operator code example Example: ternary operator (condition) ? (if true, do this) : (otherwise, do this)