syntax.else_if
Else-if written as elif or elsif.
Area 3, Logic; not declinable; the next step is usually the agent's.
An if goes on with else if.
type Count = Int { min: 0}type Size = Text {}function size(count: Count) -> Size { if (count > 100) { return "large" } elif (count > 10) { return "medium" } return "small"}
error Jadpo writes else if, not elif
--> main.jadpo:10:7
|10 | } elif (count > 10) { | ^^^^ write `else if`
- reason
elifcontinues anifin Python,elsifin Ruby andelseifin PHP and Lua; Jadpo writeselse if.- next
- Use
else ifinstead ofelif(agent) - rule
- syntax.
else_ if - help
- https://jadpo.
dev/docs/errors/syntax. else_ if
Markdown for agents: /docs/errors/syntax.else_if.md.Built from Jadpo main at aee2e8f.