Conditional operators: if, '?': Concept map

Sometimes we need to perform different actions based on a condition. There is the if statement for that and also the conditional (ternary) operator for conditional evaluation which we will be referring as the “question mark” operator ? for simplicity.

Clickable & Draggable!

Click node to preview!