# CombineWithLast Engine

The CombineWithLast ESP engine combines a record in one track with the most recent record from another track.

The engine outputs a record for each record in the Input0 track, containing the Input0 record and the last record from the Input1 track.

To determine which record is the "last" record, the records in the Input1 track are sorted by the timestamp specified for the Input1 side of the TimestampCondition. By default, the record start times are used.

The engine does not output a record from the Input0 track if there are no earlier records in the Input1 track.

Configuration Parameter | Description
--- | ---
Input0 | The first input track.
Input1 | The second input track.
TimestampCondition | Specifies a time limit for matching records, based on the record timestamps.
Type | The type of ESP engine to use. Set this parameter to `CombineWithLast`.

## Output Tracks

This engine produces a single output track, named `TaskName.Output`.

_FT_HTML5_bannerTitle.htm