simple conditional expression
基本解釋
- 簡(jiǎn)單條件表達(dá)式
英漢例句
- As in most every language, Scala’s if evaluates a conditional expression, then proceeds to a block if the result is true or branches to an alternate block if the result is false. A simple example
和大多數(shù)語(yǔ)言一樣,Scala 的if 測(cè)試一個(gè)條件表達(dá)式,然后根據(jù)結(jié)果為真或假來(lái)跳轉(zhuǎn)到響應(yīng)語(yǔ)句塊中。