Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 30 Oct 2026. What's built · Install 0.1.0
jadpo
Reference: Logic

Logic · 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"}
text
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_operatorcheck failed: 1 error, 1 file

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