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.ternary_operator

Value chosen with ? :.

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

A choice between two values is a match on the condition; the edit writes it.

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

error Jadpo chooses a value with match, not ? :

--> main.jadpo:8:23

  |8 |     return count > 10 ? "large" : "small"  |                       ^ write a `match`
reason
condition ? a : b chooses a value in JavaScript, Java, C#, Kotlin and Swift; Jadpo chooses between two values with a match on the condition.
next
Write match (count > 10) with the arms true -> "large" and false -> "small" (agent)
rule
syntax.ternary_operator
help
https://jadpo.dev/docs/errors/syntax.ternary_operator

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