+ 2
Here is the answer #1 You want both of them to be true(AND): if (x < 7&&y > 9){ //codes } #2 You want just one of them to be true (OR): if (x < 7||y > 9){ //codes } you can stack as many as you want like if (x<9&&y>9&&z==5){ //codes } hope it helps :)
11th May 2018, 5:14 PM
Shahil Ahmed
Shahil Ahmed - avatar
0
if(k > 4 && k < 7){} I hope I’m understanding your question. It’s not worded very clearly
11th May 2018, 11:25 AM
Rora