Question
#10

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
Reply


Messages In This Thread
Question - by [LSB]TheGame - 13.09.2010, 18:40
Re: Question - by [LSB]TheGame - 13.09.2010, 19:10
Re: Question - by Nero_3D - 13.09.2010, 19:15
Re: Question - by RoBo - 13.09.2010, 19:16
Re: Question - by [LSB]TheGame - 13.09.2010, 19:17
Re: Question - by CuervO - 13.09.2010, 19:27
Re: Question - by [LSB]TheGame - 13.09.2010, 19:36
Re: Question - by stix - 13.09.2010, 21:56
Re: Question - by [LSB]TheGame - 13.09.2010, 22:50
Re: Question - by Mauzen - 13.09.2010, 23:03

Forum Jump:


Users browsing this thread: 1 Guest(s)