Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 5 Nov 2026. What's built · Install 0.3.0
jadpo
ReferenceErrors

ErrorsLogic · rule

syntax.condition_brackets

Condition is not in brackets.

Area 3, Logic; not declinable; the next step is usually the agent's.

example
type Count = Int {    min: 0}type Size = Text {}function size(count: Count) -> Size {    if count > 10 {        return "large"    }    return "small"}
jadpo checkcheck failed: 1 error, 1 file

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

Markdown for agents: /docs/errors/syntax.condition_brackets.md.Built from Jadpo main at aee2e8f.