T023error
p-else without p-if
A p-else or p-else-if does not follow an element with p-if or p-else-if.
When it is reported
A conditional chain must be made of sibling elements in order. Whitespace and comments between them are ignored, but any other node breaks the chain.
How to fix it
Move the element directly after its p-if, or remove what separates them.
In your terminal and editor
$ piko explain T023Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodeInvalidDirectivePlacement in Piko's source to see where it is reported.