Logic · rule
syntax.condition_brackets
Condition is not in brackets.
Area 3, Logic; not declinable; the next step is usually the agent's.
type Count = Int { min: 0}type Size = Text {}function size(count: Count) -> Size { if count > 10 { return "large" } return "small"}
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_bracketscheck failed: 1 error, 1 file
Markdown for agents: /docs/errors/syntax.condition_brackets.md.Built from Jadpo main at a707efb.