The ? Operator is the ternary operator and takes the following form
Expression1? Expression2: Expression3;
The Expression1 is an expression which returns Boolean result. Expression2 is considered if the Expression1 is true else Expression2 is taken.
Leave a Reply