我正在编写条件运算符代替if else.但我的情况我有多个陈述如下
if (condition) { statement 1; statement 2; } else { statement 3; statement 4; }
我怎么能用条件运算符写它?并且:
@H_502_6@if (condition) { statement 1; statement 2; } else { statement 3; statement 4; }
我怎么能用条件运算符写它?并且:
@H_502_6@