> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Logic: Not

> Filters items that do not match the filter.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Reverses a condition. It keeps an item only when the condition you choose does **not** match, and filters out the items that do match. Use this to express the opposite of a check, for example "keep every order that is **not** cancelled" by wrapping a "status equals cancelled" condition in this one.

This documentation describes: [Schema](/schemas/filter/not-condition)

## Fields

<FormField property="filter" label="Condition" required diType="filter">
  The condition to reverse. You pick a single condition here; an item is kept when that condition fails, and filtered out when it matches.
</FormField>

## Sample data

This filter answers yes or no for each item, so there is no before and after. The example wraps a "status equals paid" condition, so it keeps everything that is **not** paid.

| Field     | Value                  |
| --------- | ---------------------- |
| Condition | `status` equals `paid` |

| Incoming item             | Result         |
| ------------------------- | -------------- |
| `{ "status": "paid" }`    | does not match |
| `{ "status": "pending" }` | matches        |

```json Configuration theme={null}
{
  "prototype": "not-condition",
  "parameters": {
    "filter": {
      "prototype": "value-condition-v2",
      "parameters": {
        "accessor": { "prototype": "key", "parameters": { "keys": ["status"] } },
        "conditions": [ { "prototype": "equals", "parameters": { "value": "paid" } } ]
      }
    }
  }
}
```
