The first type is the ?: operator that takes a value and tests it against the condition to see if it is true or false. If the value is true, then the first operand will be executed, otherwise, the second operand will be executed. The second type of ternary operator is the || operator that executes one of two expressions based on whether or not its argument evaluates to true or false. The third type of ternary operator is the && operator that only executes its first operand if its argument evaluates to true and otherwise does nothing.