send link to app

TernaryOperator


4.8 ( 2608 ratings )
유틸리티
개발자: Mike Courtney
비어 있는

The ternary operator is also called "ternary operator" and "conditional operator". The function of the ternary operator is to judge, which can be understood as a simplified version of if conditional judgment. Ternary operator, which requires three data to operate. Format: data type variable name=condition judgment? Expression A: Expression B; First, judge whether the condition is tenable; If true, assign the value of expression A to the left variable; If it is false, assign the value of expression B to the variable on the left. Using this application, you can not only practice the ternary operator, but also get the maximum and minimum value between two numbers through the ternary operator.