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.

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.

Move the element directly after its p-if, or remove what separates them.

$ piko explain T023

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