Open topic with navigation

# LuaScript

The name of a Lua script to run to determine whether a record or pair of records should be included in the output from the ESP task.

The script must define a function with the name `pred`. The function must return either `true` or `false`.

The response to the result of the function depends on the type of ESP task.

ESP task | Result if the function returns true
--- | ---
And | The record pair is included in the engine output track.
AndAny | The record in the first track is included in the output. (Records from the second track are never included in the output).
AndNot | The record in the first track is discarded. (Records from the second track are never included in the output anyway.)
AndNotThen | The record in the first track is discarded. (Records from the second track are never included in the output anyway.)
AndThen | The record pair is included in the engine output track.
AndThenAny | The record in the first track is included in the output. (Records from the second track are never included in the output).
Combine | The record is combined with the record in the `Input0` input track and both are included in the output.
Deduplicate | The second record is discarded.
Filter | The record is included in the engine output track.

For more information about writing Lua scripts for ESP processing, refer to the Media Server Administration Guide.

Type: | String
Default: |
Required: | No
Configuration Section: | TaskName
Example: | `LuaScript=breakingnews.lua`
See Also: |

© 2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm