Skip to main content

Parity

Redirects the value, unchanged, along the 'even' connection if even, or along the 'odd' one if odd.

Basic Information

  • Type: haystack_integrations.testing.sample_components.parity.Parity

Inputs

ParameterTypeDefaultDescription
valueintThe value to check for parity

Outputs

ParameterTypeDefaultDescription
evenint
oddint

Overview

Work in Progress

Bear with us while we're working on adding pipeline examples and most common components connections.

Redirects the value, unchanged, along the 'even' connection if even, or along the 'odd' one if odd.

Usage Example

components:
Parity:
type: testing.sample_components.parity.Parity
init_parameters:

Parameters

Init Parameters

These are the parameters you can configure in Pipeline Builder:

ParameterTypeDefaultDescription

Run Method Parameters

These are the parameters you can configure for the component's run() method. This means you can pass these parameters at query time through the API, in Playground, or when running a job. For details, see Modify Pipeline Parameters at Query Time.

ParameterTypeDefaultDescription
valueintThe value to check for parity