Skip to main content

Component-specific settings for tLoop

As described in the table below, the Job script parameters you can define in the setSettings {} function of this component are all optional. If you want to keep all the default settings of this component, simply leave an empty setSettings {} function.

Function/parameter Description Mandatory?

FORLOOP

Set this parameter to true to define a FOR loop: The task will be carried out for the defined number of iterations.

By default, this parameter is set to true. Set it to false if you want to define a WHILE loop.

This parameter and WHILELOOP are mutually exclusive.

No

WHILELOOP

Set this parameter to true to define a WHILE loop: The task will be carried out until a certain condition is met.

By default, this parameter is set to false.

This parameter and FORLOOP are mutually exclusive.

No

FROM

Use this parameter to specify the first instance number from which the loop should start.

For example, a start instance number of 2 with a step of 2 means the loop takes on every even number instance.

The default value is 1.

This parameter works only when the FOR parameter is set to true.

No

TO

Use this parameter to specify the last instance number with which the loop should finish.

The default value is 10.

This parameter works only when the FOR parameter is set to true.

No

STEP

Use this parameter to specify the step of instance number increment or decrement.

For example, a step of 2 means every second instance.

The default value is 1.

This parameter works only when the FOR parameter is set to true.

No

INCREASE

Set this parameter to:

  • true to allow only an increasing sequence.
  • false to allow only a decreasing sequence.

By default, this parameter is set to true.

This parameter works only when the FOR parameter is set to true.

No

DECLARATION

Use this parameter to specify an expression to initiate the loop.

The default value is int i=0.

This parameter works only when the WHILE parameter is set to true.

No

CONDITION

Use this parameter to specify the condition for the loop to run.

The default value is i<10, which means the loop runs until the i value reaches 10.

This parameter works only when the WHILE parameter is set to true.

No

ITERATION

Use this parameter to define the operation to be performed upon each iteration.

The default value is i++.

This parameter works only when the WHILE parameter is set to true.

No

TSTATCATCHER_STATS

Set this parameter to true to gather the processing metadata at the Job level as well as at each component level.

By default, this parameter is set to false.

No

LABEL

Use this parameter to specify a text label for the component.

No

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!