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 alternateblock if the result is false. A simple example.
和大多数语言一样,Scala的if测试一个条件表达式,然后根据结果为真或假来跳转到响应语句块中。
2
In the next block of code I define the concept f: product, defining its preferred label, as well as alternate labels.
在接下来的代码块中,我定义了概念f: product,同时定义了它的优选标签和备选标签。
3
A new alternate iteration method based on block bordered diagonal model for parallel computation in simulation of electric power system dynamics is presented in this paper.