The reference must exist in the test and precede the conditional block.
这个引用必须存在于测试中并且在条件块前。
In most cases, a conditional block issues user input actions depending on the value of a reference.
大多数情况下,一个条件块依靠一个引用的值发出用户输入动作。
By arranging for objects of different types to implement common methods, we move the dispatch decision into the objects and out of an explicit conditional block.
通过安排不同类型的对象来执行公共方法,我们将分派决定移到对象中并从显式条件块中消除。
If the reference that the conditional block will use for input does not exist, create it (as explained in the article on adding dynamic data to your Web service tests in the Resources section).
如果条件块为了输入而使用的引用不存在,那么就创建它(这在参考资料部分的文章addingdynamicdatatoyourWebservicetests中有解释)。
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测试一个条件表达式,然后根据结果为真或假来跳转到响应语句块中。
The statements on line 1, 2, and 3, and the comparison on line 4, all form one basic block that ends with the conditional jump implementing the if statement.
行是声明行,第四行上是比较,所有这些组成了以传统跳跃执行结尾的基本块。
The statements on line 1, 2, and 3, and the comparison on line 4, all form one basic block that ends with the conditional jump implementing the if statement.
行是声明行,第四行上是比较,所有这些组成了以传统跳跃执行结尾的基本块。
应用推荐