|| (logical OR) Control Logical Operators Web & Application logicalOR.gif for(int i=5 ; i<=95; i+=5) { if((i < 35) || (i > 60)) { line(30, i, 80, i); } } Compares two expressions and returns true if one or both evaluate to true. Returns false only if both expressions are false. The following list shows all possible combinations:

true || false // Evaluates true because the first is true
false || true // Evaluates true because the second is true
true || true // Evaluates true because both are true
false || false // Evaluates false because both are false
expression1 || expression2 any valid expression any valid expression && (logical AND) ! (logical NOT) if() 1.0 Operator PDE