Problem with multiple conditions....

Hi. I want to increase the value of the “Range_Sub” variable until it equals the “Range” variable or until it reaches 7 (whichever comes first). The script works fine when I am just using one condition, but something goes wrong when I introduce the second. Range-sub always keeps going up to seven, even if range has a lower value at the time. What is wrong? Thanks

for (Range_Sub = 0; (Range_Sub < Range) || (Range_Sub+Column<7); Range_Sub++)myTest[Current_Number+Range_Sub]=true;

Try using && instead of II