creating:jlists

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
creating:jlists [2026/11/18 19:12] – Minor error and typo fixes ahelwercreating: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="2,3,4,5,6,7,8,9"]>+<code java [highlight_lines_extra="2,3,4,5,6,7,8,9,10,11"]>
         return true;         return true;
       case OR:       case OR:
Line 281: Line 281:
           Object junctResult = evaluate(disjunct);           Object junctResult = evaluate(disjunct);
           checkBooleanOperand(expr.operator, junctResult);           checkBooleanOperand(expr.operator, junctResult);
-          result |= (boolean)junctResult;+          if ((boolean)junctResult) { 
 +            result = true; 
 +          }
         }         }
         return result;         return result;
  • creating/jlists.1795029125.txt.gz
  • Last modified: 2026/11/18 19:12
  • by ahelwer