13.09.2010, 23:03
Its just a simple problem. If you use '||' ('or') it goes like this: Is the variable not 5 OR not 6 OR not 7 will always be true, because the variable would need to be 5, 6 and 7 at the same time to return true here. Use && (AND) instead (not 5 AND not 6 AND not 7)
@Cuervo: You made a similar mistake. Swap the '<' and '>'. Your check will never be true, because a variable cant be smaller than 5 and bigger than 7 at the same time
@Cuervo: You made a similar mistake. Swap the '<' and '>'. Your check will never be true, because a variable cant be smaller than 5 and bigger than 7 at the same time
