Open topic with navigation

# setOutput

Sets whether to include the match in the results.

## Syntax

`edkEnMasseMatch:setOutput(output)`

## Arguments

Argument | Description
--- | ---
`output` | A Boolean value that specifies whether to include the match in the results (true) or discard it (false).

## Example

The following script uses the `setOutput` method to discard matches with a score less than `0.5`:

    function processmatches(matches)
        -- example that discards matches with score < 0.5
        for k,v in ipairs (matches) do
            local edkmatch = v:getMatch()
            if edkmatch:getScore() < 0.5 then
                v:setOutput(false)
            end
        end
    end

© Copyright 2013-2019 Micro Focus or one of its affiliates | Send documentation feedback 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