Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

To add a sequence of actions to the loop body, you must move them to the "Loop For" action loop.

Action group

Image Modified

Action parameters

...

  1. Open the "Base actions" action group.

  2. Place the "For" loop action in the Studio workspace and set its parameters.

    1. "From" parameter. Set the initial value of the counter for the loop.

    2. "To" parameter. Set the final counter value for the loop.

    3. "Increment" parameter. Set the value by which the counter will be incremented.



  3. Place the "Equal to" action inside the "For" loop in the Studio workspace. This action will check if the current value of the loop counter is equal to the specified value.

    1. In the "First operand" parameter we specify the current state of the loop iterator (counter).

    2. In the "Second operand" parameter we specify the value "2".



  4. Place the "If" action inside the "For" loop in the Studio workspace (see the description of the "If" action). 

    1. Set the condition. The condition will be the result of the "Equal to" action.



  5. Place the "Message in log" action in the "If" action workspace of the "False" branch (see the description of the "Message in log" action).

     

  6. Place the "Message in log" action in the "If" action workspace of the "True" branch (see the description of the "Message in log" action).


  7. Place the "Break the loop" action in the "If" action workspace of the "True" branch (see the description of the action "Break the loop (Base actions)").

  8. Launch the robot using the "Start" button in the top panel. The final scheme of the robot will look as follows:

...