Skip to content

Conditional Operators

Operator Description Example Result
? : Ternary conditional (if-else) x = (5 > 3) ? "yes" : "no"; "yes"