# `syntax.condition_brackets`

Condition is not in brackets.

Area 3, [Logic](../topics/logic.md); not declinable; the next step is usually the agent's.

```jadpo
type Count = Int {
    min: 0
}

type Size = Text {}

function size(count: Count) -> Size {
    if count > 10 {
        return "large"
    }
    return "small"
}
```

```text
error: This condition needs brackets
 --> main.jadpo:8:8
  |
8 |     if count > 10 {
  |        ^^^^^^^^^^ expected `(` before the condition
  reason: Conditions are always in brackets, `if (total > limit) {`, so the block can't be mistaken for part of the condition.
  next: Write `if (count > 10) {` (agent)
  rule: syntax.condition_brackets
  help: https://jadpo.dev/docs/errors/syntax.condition_brackets

check failed: 1 error, 1 file
```
