> ## 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 not empty

> Checks if the value is not null, not an empty string, and not an empty array.

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 value coming in actually contains something. It is the opposite of [Is empty](/references/condition/empty): the condition is met for any value that is not null, not blank text (`""`), and not an empty list. Use this to act only when a field has been filled in, for example to skip products that are missing a name or orders that have no line items. This condition has no settings: it looks at whatever value it is given and reports whether that value has content.

One thing to watch: a value such as the text `"0"`, the number `0`, or a false on/off value all count as having content, so this condition treats them as not empty. Only null, blank text, and an empty list count as empty.

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

## Sample data

This checks each entity's `middleName` field. The condition has no settings of its own.

| Incoming value    | Result         |
| ----------------- | -------------- |
| `"Lee"` (text)    | Matches        |
| `"0"` (text)      | Matches        |
| `""` (blank text) | Does not match |
| null (no value)   | Does not match |

```json Configuration theme={null}
{
  "prototype": "not-empty",
  "parameters": {}
}
```
