T140error

Logical operator on non-booleans

An operand of &&, || or ! is not a boolean, or the operands of || are incompatible.

Piko does not treat non-boolean values as true or false implicitly.

Compare explicitly, or use the ~ operator for truthiness, such as ~value && ~other.

$ piko explain T140

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 CodeLogicalOperatorError in Piko's source to see where it is reported.