or: when at least one condition must be true

Syntax and values

Behavior and details

Use or to ask whether at least one question has a true answer. Both values it checks must be Booleans. An operand is simply a value an operator works with: the parts to the left and right of or.

If the left answer is true, the whole answer is already known, so Pliro skips the right part. This is short-circuiting. A skipped part also skips any function call it contains. or has the lowest operator priority; comparisons and and group before it. Numbers, text, and collections are not automatically turned into yes-or-no answers.

Example

# language: en
let items = []
say length(items) == 0 or items[0] == 1

Syntax and values · Built-ins · Programming guides