# `type.principal_active_invalid`

Principal's active condition is not a test of the record's own fields.

Area 8, [Identity](../topics/identity.md); not declinable; the next step is usually the agent's.

```jadpo
principal {
    user: {
        subject: Member.handle
        active: Member.suspended
    }
}

type Handle = Text {
    max_length: 40
}

entity Member {
    id: Uuid
    handle: Handle {
        unique: true
    }
    suspended: Bool
}
```

```text
error: `Member.suspended` isn't a condition `active:` can use
 --> main.jadpo:4:17
  |
4 |         active: Member.suspended
  |                 ^^^^^^^^^^^^^^^^ not a comparison
  reason: `active:` is a condition on `Member`'s own fields, such as `Member.<field> == <value>`; a field alone says nothing to compare it with.
  next: Compare a field of `Member` with a value (agent)
  rule: type.principal_active_invalid
  help: https://jadpo.dev/docs/errors/type.principal_active_invalid

check failed: 1 error, 1 file
```
