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

# Is one of

> Checks if a value is one of the given items.

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>;
};

Checks whether a value matches one of the items in a list you provide. Use this when a field is only valid if it equals one of a fixed set of options, for example accepting an order only when its country is one of the regions you ship to, or treating a status as valid only when it is one of a handful of known values. The check is exact and also compares the data type, so the text `"5"` does not match the number `5`.

This documentation describes: [Schema](/schemas/condition/one-of)

## Fields

<FormField property="value" label="Allowed values" required>
  The list of items the value is allowed to be. The condition passes when the value matches any one of these items exactly. Add at least one item; you can list as many as you need, and each item can be text, a number, a yes/no value, a list, or empty.
</FormField>

## Sample data

With the allowed values set to `NL`, `BE`, and `DE`, the condition checks whether a country code is one of them.

| Field          | Value            |
| -------------- | ---------------- |
| Allowed values | `NL`, `BE`, `DE` |

| Value | Result         |
| ----- | -------------- |
| `BE`  | Matches        |
| `US`  | Does not match |

```json Configuration theme={null}
{
  "prototype": "one-of",
  "parameters": {
    "value": ["NL", "BE", "DE"]
  }
}
```
