FOR

This help page is for Studio. This information is also available for Desktop Studio.

A looping statement in an action. FOR enables you to specify the increment and the number of times the loop occurs. The loop will go down automatically if ToValue is less than FromValue.

You can create FOR loops in Snippet actions as an alternative to using the FOR action.

Supported Script Types

A square with a line branching from it that goes to three other squares.

Generic

Email Chat Phone Voicemail Work Item SMS

Input Properties

These properties define data that the action uses when executing.

Property

Description

Add Caption

Enter a short phrase that uniquely identifies this action in the script. The caption appears on the script canvas under the action icon.

From Value The initial value.
To Value The value in which the loop will end and follow the OnFinished branch.
Step The increment that will be added to the initial value.
Counter Name Name of a variable to receive the current value of FromValue plus Step.

Result Branch Conditions

Result branch conditions allow you to create branches in your script to handle different outcomes when an action executes.

Condition

Description

Finished

Path taken when the Repeat count exceeds the specified number.

Repeat

Path taken while the current Repeat count is less than or equal to the specified number.