type.logical_operand
Logical operator needs Bool operands.
Area 3, Logic; not declinable; the next step is usually the agent's.
type Score = Int {}type Flag = Bool {}function both(score: Score) -> Flag { return Flag(score and score)}
error and needs Bool values, and score is a Score
--> main.jadpo:6:17
|6 | return Flag(score and score) | ^^^^^ this is `Score`
- reason
andandorwork onBoolvalues and types built onBool; Jadpo has no truthiness.- next
- Compare
scoreto get aBool(agent) - rule
- type.
logical_ operand - help
- https://jadpo.
dev/docs/errors/type. logical_ operand
Markdown for agents: /docs/errors/type.logical_operand.md.Built from Jadpo main at aee2e8f.