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系统中,由一个数据项、算术表达式或条件表达式表示的信息。
On the other hand, it can be used within a parenthesized expression or within the second expression of a conditional operator in such contexts.
另一方面,它可以使用在一个带括号的表达式或在第二个表达式在这样的环境条件操作符。
By changing gene expression patterns during development through knockouts, conditional knockouts, or overexpression, the changes in the system can be explored.
运用敲除、条件基因敲除或者过度表达的方法来改变发育过程中的基因表达,探讨在系统中出现的这些变化。
Because a cell property's value can be an MDX expression, you can perform conditional logic to determine whether the font will be Roman or boldface.
由于一个MDX只能设置一个单元格属性,所以只能通过条件逻辑判断是显示罗马字体还是黑体。
If the tested expression should contain the bitwise-or operator, then parentheses should be added around the conditional-expression.
如果被测试表达式中应当包含按位或运算符,则应当在条件表达式的两侧加上括号。
Adding, removing, or changing the evaluation expression of a conditional compilation statement.
加入、移除,或变更条件式编译陈述式的评估运算式。
Adding, removing, or changing the evaluation expression of a conditional compilation statement.
加入、移除,或变更条件式编译陈述式的评估运算式。
应用推荐