Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| creating:jlists [2026/11/18 19:12] – Minor error and typo fixes ahelwer | creating:jlists [2026/11/19 03:00] (current) – Minor change to interpretation code of OR ahelwer | ||
|---|---|---|---|
| Line 274: | Line 274: | ||
| Then add the disjunction list logic right below that: | Then add the disjunction list logic right below that: | ||
| - | <code java [highlight_lines_extra=" | + | <code java [highlight_lines_extra=" |
| return true; | return true; | ||
| case OR: | case OR: | ||
| Line 281: | Line 281: | ||
| Object junctResult = evaluate(disjunct); | Object junctResult = evaluate(disjunct); | ||
| checkBooleanOperand(expr.operator, | checkBooleanOperand(expr.operator, | ||
| - | | + | |
| + | result = true; | ||
| + | } | ||
| } | } | ||
| return result; | return result; | ||