Skip to main content
Namespace: 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

Class Information

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

Constructor

Parameters:
  • forced_value (object)
  • default_value (object)
  • config (OperatorConfig)

Constructor

Parameters:
  • config (OperatorConfig)

Methods

Properties

inputs

Type: InputSpec

outputs

Type: OutputSpec

defaultConfig

Type: Config