> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# for_each class

**Namespace:** [Ans.DataProcessing.operators.utility](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/utility)

## Summary

Allows to write a loop over a chunk of operators.

available inputs: `iterable` (object), `iterable_values` (object) (optional), `pin_index` (Int32) (optional), `forward1` (object), `forward2` (object)

available outputs: `empty` (object), `output1` (object), `output2` (object)

## Example

```python theme={null}
op = for_each()

op = for_each(iterable=my_iterable,iterable_values=my_iterable_values,pin_index=my_pin_index,forward1=my_forward1,forward2=my_forward2)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.utility` |
| Assembly | `Ans_Dpf_Native_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### iterable

Either the result of the make\_iterable\_info operator, or the operator that must be incremented.

**Type:** *LinkableInput*

### iterable\_values

**Type:** *LinkableInput*

### pin\_index

**Type:** *LinkableInput*

### forward1

**Type:** *LinkableInput*

### forward2

**Type:** *LinkableInput*

## Outputs

### empty

**Type:** *LinkableOutput*

### output1

**Type:** *LinkableOutput*

### output2

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
for_each()
```

#### Constructor

```python theme={null}
for_each(iterable, iterable_values, pin_index, forward1, forward2, config)
```

**Parameters:**

* `iterable` (*object*)
* `iterable_values` (*object*)
* `pin_index` (*object*)
* `forward1` (*object*)
* `forward2` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
for_each(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
