# AndAny Engine

An `AndAny` ESP task compares a track (`Input0`) with one or more other tracks (`InputN`). The output contains every record from the `Input0` track which is preceded or followed, within a specified time interval, by at least one event in any other track.

When you set `LuaScript` or `LuaLine`, pairs of records (each consisting of a record in the `Input0` track and a record in another track that was found within the specified time interval) are passed into the function. An `Input0` record is included in the output only if your Lua function returns `TRUE` for at least one pair in which it is included.

Configuration Parameter | Description
--- | ---
Input0 | The first input track. Records from this track are added to the output if the relevant conditions are met.
InputN | Additional input tracks. Records in these tracks are never added to the output.
LuaLine | A Lua script that determines whether an `Input0` record is included in the output.
LuaScript | A Lua script that determines whether an `Input0` record is included in the output.
MaxTimeInterval | (Deprecated) Specifies the end of the time interval, as a time duration relative to the start time of the `Input0` record.
MinTimeInterval | (Deprecated) Specifies the beginning of the time interval, as a time duration relative to the start time of the `Input0` record.
TimestampCondition | Specifies time limits for matching records, based on the record timestamps.
Type | The type of ESP engine to use. Set this parameter to `AndAny`.

## Output Tracks

This engine produces a single output track, named `TaskName.Output`. The output track has the same format as the input track `Input0`.

_FT_HTML5_bannerTitle.htm