Home | Table of Contents | Condition | CloverETL 4.6.1
--- | --- | ---
Prev | Job Control | Next

## Condition

# Jobflow Component

Short Description
Ports
Metadata
Condition Attributes
Details
See also

### Short Description

The Condition component routes incoming tokens to one of its output ports based on a result of a specified condition. It is similar to `if` statement in programming languages.

| Note
To be able to use this component, your license needs to support the Jobflow. Also, the component requires your project to be executed on CloverETL Server.

Component | Same input metadata | Sorted inputs | Inputs | Outputs | Each to all outputs | Java | CTL | Auto-propagated metadata
--- | --- | --- | --- | --- | --- | --- | --- | ---
Condition | – |  | 1 | 1–2 |  | – | – |

### Icon

### Ports

Port type | Number | Required | Description | Metadata
--- | --- | --- | --- | ---
Input | 0 |  | For input tokens | Any
Output | 0 |  | For tokens compliant with the condition | Input 0
1 |  | For tokens not satisfying the condition | Input 0

### Metadata

Metadata can be propagated through this component.

All output metadata must be the same.

This component has Metadata Templates available.

### Condition Attributes

Attribute | Req | Description | Possible values
--- | --- | --- | ---
Basic
Condition | yes | Boolean expression according to which the tokens are filtered. Expressed as a sequence of individual expressions for individual input fields separated from each other by semicolon. |

### Details

For each incoming token, the Condition component evaluates specified Boolean condition and if the result is true, the token is sent to the first output port, otherwise to the second (optional) output port.

Condition works the same way as the Filter component.

For more details about the Condition attribute see Filter Expression of the Filter component.

### See also

Common Properties of Components
Specific Attribute Types
Common Properties of Job Control
Job control Comparison

Prev | Up | Next
Barrier | Home | Table of Contents | ExecuteGraph