Loop

Description

The Loop command enables you to loop underlying program commands in PolyScope X.


To access Loop command

  1. Go to the main program screen. See Command Nodes.

  2. Tap the Loop icon in the Commands toolbox.

    A node with Loop Type field is inserted into the program tree.

  3. Tap the Loop Type field. Three choices are available:

    • Always. Any commands under the loop command will be repeated continuously, such as the Loop Program, which continually repeats everything under the Main Program.

    • X Times. Repeats any commands in the loop command the number of times that’s entered.

    • While. Use some type of expression as the trigger to end the loop cycle.

     

  4. Tap the Always tab. No further action to do.

 
  1. Tap X Times, and two additional tabs appear on the right:

    • X Times

    • Variable Name

  2. On the X Times tab, edit and Confirm.

  3. On the Variable Name tab, edit and Confirm.

  4. Tap While. An additional Expression tab appears on the right.

  5. Tap Expression to create expression that must be between 1 and 1000 characters, and Confirm.