T122error
Condition is not a boolean
A p-if, p-else-if or p-show expression is not a boolean.
When it is reported
Conditions must be booleans. Piko does not treat strings, numbers or pointers as true or false implicitly.
How to fix it
Compare explicitly, such as len(items) > 0, or use the ~ operator for truthiness, such as ~value.
In your terminal and editor
$ piko explain T122Build 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 CodeConditionalTypeError in Piko's source to see where it is reported.