> ## 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.

# default_value class

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

## Summary

Returns the value from pin 0 if provided, otherwise returns the default value from pin 1. This operator acts as a fallback mechanism for optional inputs.

available inputs: `forced_value` (object) (optional), `default_value` (object)

available outputs: `output` (object)

## Example

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

op = default_value(forced_value=my_forced_value,default_value=my_default_value)
```

## Class Information

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

## Inputs

### forced\_value

Primary value to return if provided. Can be any type

**Type:** *LinkableInput*

### default\_value

Default value to return if pin 0 is not connected. Must be the same type as pin 0

**Type:** *LinkableInput*

## Outputs

### output

Returns primary\_value if provided, otherwise default\_value

**Type:** *LinkableOutput*

## Constructors

#### Constructor

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

#### Constructor

```python theme={null}
default_value(forced_value, default_value, config)
```

**Parameters:**

* `forced_value` (*object*)
* `default_value` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
default_value(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
```
