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

# Type: Boolean

> Checks that the value is of type boolean.

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 the incoming value is a true or false value, and nothing else. Use this to confirm that a flag such as "in stock", "active", or "subscribed" really holds an on/off value before you rely on it. Only an actual `true` or `false` matches: the text `"true"`, the words `"yes"` or `"no"`, and the numbers `1` or `0` all fail, because they are text or numbers rather than a real on/off value. This condition has no settings: it looks at whatever value it is given and reports whether that value is a true/false value.

This documentation describes: [Schema](/schemas/condition/type-boolean)

## Fields

This condition has no settings of its own.

## Sample data

This checks each entity's `value` field.

| Incoming value             | Result         |
| -------------------------- | -------------- |
| `true` (an on/off value)   | Matches        |
| `false` (an on/off value)  | Matches        |
| `"hello"` (text)           | Does not match |
| `42` (a number)            | Does not match |
| `null` (no value)          | Does not match |
| `["a", "b", "c"]` (a list) | Does not match |

```json Configuration theme={null}
{
  "prototype": "type-boolean",
  "parameters": {}
}
```
