> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.utils.filters.LessThan

- Component: `appmixer.utils.filters.LessThan`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.utils.filters 1.0.5](https://connectors.appmixer.com/connector/appmixer.utils.filters/1.0.5.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.utils.filters/1.0.5/component/appmixer.utils.filters.LessThan>

A message passes through this filter if a field from a previous connector contains a value that is less than the value specified. Values can be both numbers or dates.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Data (`sourceData`) | text | The data that we want to check (number or date). You can select data from any previous connector via the select box. |
| Less than (`lessThan`) | text | Any number or date (e.g. 2017-04-23 22:45). If the value under _Data_ is less than or equal to the value specified, the filter passes the message through. Otherwise, it ignores the message. |
| Exclusive (`exclusive`) | toggle | By default, the filter passes messages containing values that are less than or equal to the value specified. Turn exclusivity on if you want to exclude test on equality. |

## Output ports

### Port `less`

_No fields defined for this port._

### Port `notLess`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.filters.LessThan",
  "author": "Tomáš Waldauf <tomas@client.io>",
  "description": "A message passes through this filter if a field from a previous connector contains a value that is less than the value specified. Values can be both numbers or dates.",
  "private": false,
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "properties": {
          "sourceData": {
            "type": "string"
          },
          "lessThan": {
            "type": "string"
          },
          "exclusive": {
            "type": "boolean"
          }
        },
        "required": [
          "sourceData",
          "lessThan"
        ]
      },
      "inspector": {
        "inputs": {
          "sourceData": {
            "type": "text",
            "label": "Data",
            "index": 1,
            "tooltip": "The data that we want to check (number or date). You can select data from any previous connector via the select box."
          },
          "lessThan": {
            "type": "text",
            "label": "Less than",
            "index": 2,
            "tooltip": "Any number or date (e.g. 2017-04-23 22:45). If the value under <i>Data</i> is less than or equal to the value specified, the filter passes the message through. Otherwise, it ignores the message."
          },
          "exclusive": {
            "type": "toggle",
            "label": "Exclusive",
            "index": 3,
            "tooltip": "By default, the filter passes messages containing values that are less than or equal to the value specified. Turn exclusivity on if you want to exclude test on equality."
          }
        }
      }
    }
  ],
  "outPorts": [
    "less",
    "notLess"
  ],
  "icon": "(data URI omitted)"
}
```
