|| (logical OR) / Reference

  • size(400, 400);
    
    for (int i = 20 ; i <= 380; i += 20) {
      if ((i < 140) || (i > 240)) {
        line(120, i, 320, i);
      }
    }
    Image output for example 1