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

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

A message passes through this filter if a value from a previous connector contains 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. You have to select data from any previous connector via the select box. |
| Contains (`value`) | text | Any text. If the data contains the text specified, the filter passes the message through. Otherwise, it ignores the message. Note that the comparison is case insensitive. |

## Output ports

### Port `contains`

_No fields defined for this port._

### Port `notContains`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.filters.Contains",
  "author": "Tomáš Waldauf <tomas@client.io>",
  "description": "A message passes through this filter if a value from a previous connector contains the value specified. Values can be both numbers or dates.",
  "private": false,
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "properties": {
          "sourceData": {},
          "value": {}
        },
        "required": [
          "sourceData",
          "value"
        ]
      },
      "inspector": {
        "inputs": {
          "sourceData": {
            "type": "text",
            "label": "Data",
            "index": 1,
            "tooltip": "The data that we want to check. You have to select data from any previous connector via the select box."
          },
          "value": {
            "type": "text",
            "label": "Contains",
            "index": 2,
            "tooltip": "Any text. If the data contains the text specified, the filter passes the message through. Otherwise, it ignores the message. Note that the comparison is case insensitive."
          }
        }
      }
    }
  ],
  "outPorts": [
    "contains",
    "notContains"
  ],
  "icon": "(data URI omitted)"
}
```
