... conditional-expression:(条件表达式:) conditional-or-expression(条件或表达式) conditional-or-expression?expression:expression(条件或表达式?表达式:表达式) ...
基于1个网页-相关网页
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.
和大多数语言一样,Scala的if测试一个条件表达式,然后根据结果为真或假来跳转到响应语句块中。
In general, you can replace a conditional statement with a conditional expression if both branches contain simple expressions that are either returned or assigned to the same variable.
一般来讲,你可以用条件表达式来替换掉条件语句,无论这些语句的分支是返回语句或者是赋值语句。
In the COBOL system, the information represented by a data item, arithmetic expression, or conditional expression.
在COBOL系统中,由一个数据项、算术表达式或条件表达式表示的信息。
应用推荐