[請益] 關於if..else的簡寫法
if...else可以簡寫成 ? :這種形式
那請問若是
if(condition)
{
statement1
}
else if(condition2)
{
statement2
}
else
{statement3}
這種形式的
有沒有簡寫的表達方式呢?
--
雁仔§小弟 Typed .
清醒度★★★☆☆ .
E.D isn't a Dream .
So -- I DanCe Therefore I Am .
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.110.82.96
→
11/27 21:01, , 1F
11/27 21:01, 1F
→
11/27 21:01, , 2F
11/27 21:01, 2F
→
11/27 21:14, , 3F
11/27 21:14, 3F
推
11/27 23:51, , 4F
11/27 23:51, 4F