Skip to main content

Execute-the-Operation-in-Unlimited-Loops

Command Description

When there is no stop condition, the loop operation continues

Command Prototype

Do 

Loop

Parameter Description

ParameterRequiredTypeDefaultDescription
NoneNoneNoneNoneNone
TracePrint("------------------------------------Do Loop-------------------------------------------") 
//-------------------------------------------------------------------------------
//[Remarks] There is no exit condition, the loop will continue to execute, consuming system resources, it is not recommended to use
TracePrint("Execute a plus 1 calculation infinitely")
a = 1
Do
a = a+1
Loop