Skip to main content

If@1

Node If@1 allows to execute a sub transformation pipeline based on a condition.

Adapter Prerequisites

  • General availability: All adapters support this node type.

Node Configuration

For fields path, see Overview.

transformations:
- type: If@1
path: $.customer.age # Path to the value to compare
operator: Equals # comparison operator
value: 17 # optional value to compare
valuePath: $.customer.age # optional path to the value to compare
valueType: Integer # value type of the value to compare
transformations: # Sub pipeline that will be executed for each iteration
- type: Simulation@1
simulations:
- targetPath: $.customer.firstName
simulatorKey: Person.FirstName
- targetPath: $.customer.lastName
simulatorKey: Person.LastName
- targetPath: $.customer.street
simulatorKey: Address.StreetName