Simply
1 + 1 == 2 ? print('check true') : print('check false');
is equals to
if(1+1 == 2) {
print('check true');
else {
print('check false');
}
and
1 + 1 == 2 ?? print('check true');
is equals to
if((1+1 == 2) == null ) {
print('check true');
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…