conditional operator executes the condition and returns a boolean value. If the boolean value is true, then the first expression will be executed. Otherwise, the second expression will be executed.
The conditional operator is also called as ternary operator.
|condition||Required||An expression whose value is used as a condition.|
|Browser / PL|