Skip to main content

Execute-the-Operation-First-When-Post-Condition-Is-False,-Continue-the-Loop

Command Description

First Perform Sentences Block, when using the Until, continue using the value of the Conditional Expression (Expression) when the value is false (not established), when the value of the Conditional Expression (Expression) is really (established) cycle

Command Prototype

Do 

Loop Until expression

Parameter Description

ParameterRequiredTypeDefaultDescription
expressionTrueexpression1 > 0The expression used for judgment

Demo

TracePrint("----------------------------Execute the statement block first and exit the loop when the conditional expression is true------ ----------------------------") 
//-------------------------------------------------------------------------------
//[Remarks] When using Until , when the value of expression is false, continue to execute the Block statement block, and exit the loop when expression is true.
TracePrint("Let a=1, execute a to increment by 1 until a is equal to 10, exit the loop")
a = 1
Do
a = a + 1
Loop Until a=10
TracePrint(a)