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

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

A message passes through this filter if the remainder after division of the value received from the previous connect by the value specified is zero.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Data (`sourceData`) | number | The data that we want to check. You can select data from any previous connector via the select box. |
| Divisor (`value`) | number | Any number. If the _Divisor_ divides the data under _Data_ with reminder of 0, the filter passes the message through. Otherwise, it ignores the message. |

## Output ports

### Port `modulo`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.filters.Modulo",
  "author": "Tomáš Waldauf <tomas@client.io>",
  "description": "A message passes through this filter if the remainder after division of the value received from the previous connect by the value specified is zero.",
  "private": false,
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "properties": {
          "sourceData": {
            "type": "number"
          },
          "value": {
            "type": "number"
          }
        },
        "required": [
          "sourceData",
          "value"
        ]
      },
      "inspector": {
        "inputs": {
          "sourceData": {
            "type": "number",
            "label": "Data",
            "index": 1,
            "tooltip": "The data that we want to check. You can select data from any previous connector via the select box."
          },
          "value": {
            "type": "number",
            "label": "Divisor",
            "index": 2,
            "tooltip": "Any number. If the <i>Divisor</i> divides the data under <i>Data</i> with reminder of 0, the filter passes the message through. Otherwise, it ignores the message."
          }
        }
      }
    }
  ],
  "outPorts": [
    "modulo"
  ],
  "icon": "(data URI omitted)"
}
```
