> 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.GreaterThan

- Component: `appmixer.utils.filters.GreaterThan`
- 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.GreaterThan>

A message passes through this filter if a field from a previous connector contains a value that is greater than (or equal, by default) 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. |
| Greater than (`greaterThan`) | text | Any number or date (e.g. 2017-04-23 22:45). If the value under _Data_  is greater 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 greater than or equal to the value specified. Turn exclusivity on if you want to exclude test on equality. |

## Output ports

### Port `greater`

_No fields defined for this port._

### Port `notGreater`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.filters.GreaterThan",
  "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 greater than (or equal, by default) the value specified. Values can be both numbers or dates.",
  "private": false,
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "properties": {
          "sourceData": {
            "type": "string"
          },
          "greaterThan": {
            "type": "string"
          },
          "exclusive": {
            "type": "boolean"
          }
        },
        "required": [
          "sourceData",
          "greaterThan"
        ]
      },
      "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."
          },
          "greaterThan": {
            "type": "text",
            "label": "Greater than",
            "index": 2,
            "tooltip": "Any number or date (e.g. 2017-04-23 22:45). If the value under <i>Data</i>  is greater 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 greater than or equal to the value specified. Turn exclusivity on if you want to exclude test on equality."
          }
        }
      }
    }
  ],
  "outPorts": [
    "greater",
    "notGreater"
  ],
  "icon": "(data URI omitted)"
}
```
