接下来,考虑无限循环语句和条件。
Next, we consider the infinite loop statement and conditionals.
如果条件的求值结果为TRUE,那么就将执行语句列表,在循环的顶部恢复控制。
If the condition evaluates to TRUE, the statement list is executed, then control resumes at the top of the loop.
毫无疑问,最常见的调试步骤是设置断点,这样可以检查条件语句或循环内的变量和值。
Undoubtedly, the most common debugging procedure is to set breakpoints that will allow the inspection of variables and the values inside conditional statements or loops.
有时,您需要一个简单的验证点,但是有时您需要条件语句,还有时您需要添加一个延迟或者循环。
Sometimes, you can get by with a simple verification point, but sometimes you need conditionals, and sometimes you need to add a delay or a loop.
我们有一个循环,通过一个条件和一个布尔值来判断,是否触到了边缘,还有一些语句,让它回头并咆哮。
You've got a loop, you've got a condition and a Boolean to check if he's touching the edge, and some statements to tell him to shout or to actually turn around.
bash中的while循环可以重复执行语句一定的次数,或者一直执行到满足某一条件为止。
A while loop within bash allows you to execute a statement a given number of times, or until a certain condition is met.
您已经了解了如何使用for 循环;现在,我们来讨论条件语句。
You already know how to use a for loop. Now let's talk about conditionals.
如果条件的求值结果为FALSE或NULL,那么将绕过循环,并且控制被传递给下一条语句。
If the condition evaluates to FALSE or NULL, the loop is bypassed, and control passes to the next statement.
GO TO标签语句可以无条件地退出循环,并将控制权转移到跟在指定的语句标签之后的可执行语句或语句块。
The GOTO label statement can unconditionally exit from a loop and transfer control to the executable statement or statement block that follows the specified statement label.
while语句定义了一个语句集合,如果在WHILE循环开始时某个条件的求值结果为false,那么就将执行这个语句集合。
The WHILE statement defines a set of statements to be executed until a condition that is evaluated at the beginning of the WHILE loop is false.
REPEAT语句定义了一个语句集合,如果在 REPEAT 循环结束时某个条件的求值结果为true,那么就将执行这个语句集合。
The REPEAT statement defines a set of statements to be executed until a condition that is evaluated at the end of the REPEAT loop is true.
在Script窗格中选择任何映射语句,这将显示该语句中所引用的所有源和目标可映射对象,如映射源、循环迭代器、条件、where子句,等等。
Selecting any mapping statement in the Script Pane shows all source and target mappables referenced in the statement, such as mapping source, loop iterator, condition, where clause, and so on.
另一种常见的算法结构是当条件为“真”时,循环执行一条语句或者语句序列。
Another common algorithmic structure involves that the need to continue executing a statement or sequence of statements as long as some condition remains true.
对于其他任何条件或循环语句,都不可采用这种方法。
You cannot use this approach with any of the other selection or iteration statements.
汇编语言依序执行算术指令,而跳转指令可以通过改变程序计数器的值来执行条件语句和循环语句。
Assembly language instruction sequence perform arithmetic, and jump instruction by changing the program counter value to execute the conditional statement and circular statement.
汇编语言依序执行算术指令,而跳转指令可以通过改变程序计数器的值来执行条件语句和循环语句。
Assembly language instruction sequence perform arithmetic, and jump instruction by changing the program counter value to execute the conditional statement and circular statement.
应用推荐