Do Loop
Command Description
Without a stop condition, the operation will keep looping. You can use the "Break" statement to stop it.
Command Prototype
Do
Loop
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
None | None | None | None | None |
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