UNGROUPED_AND_OR

CompileSeen in: The editor

What happened

Python joins & before |, so an expression that mixes them without brackets does not run in the order it reads. Forge refuses it so the order is always on the page.

What to do

Add brackets: (a & b) | c or a & (b | c).

Example

text
strategy.py, line 44: Add brackets to a & b | c. Python joins & before |, so a & b | c runs as (a & b) | c. Write (a & b) | c or a & (b | c). [UNGROUPED_AND_OR]

The wording of the message depends on your file, and the code does not. An error stops the file from loading.

Ask about this in the forum