The operator < is undefined for the argument type(s) boolean, int
问题 I am new to processing and I am having trouble with this. I keep getting an error message for the bolded part of the code below. Is my syntax wrong? void block(int x, int y, int s, color tinto) { fill(tinto); for (int i = 0; i < 3; i++) { triple(x, y+i*s, s, tinto); } if (0 < i < 3 && 6 < i < 9) { // HERE tinto = 255; } else { tinto = tinto - 200; } } 回答1: In Java, to check if a variable is in a range you have to divide the statement into two parts, like this: if (0 < i && i < 3 && 6 < i && i