Which will work correctly?
#10

Let's say health is 70

if(health > 10 || health < 50) // Only 1 has to be true and we have 1 true so...
{
Code will be called
}

if(health > 10 && health < 50) // Both have to be true, but we have only one true, so...
{
Code won't be called
}
Reply


Messages In This Thread
Which will work correctly? - by SiJ - 26.07.2009, 15:54
Re: Which will work correctly? - by refshal - 26.07.2009, 15:58
Re: Which will work correctly? - by SiJ - 26.07.2009, 16:00
Re: Which will work correctly? - by Correlli - 26.07.2009, 16:03
Re: Which will work correctly? - by refshal - 26.07.2009, 16:05
Re: Which will work correctly? - by SiJ - 26.07.2009, 16:21
Re: Which will work correctly? - by Correlli - 26.07.2009, 16:22
Re: Which will work correctly? - by MadeMan - 26.07.2009, 16:25
Re: Which will work correctly? - by SiJ - 26.07.2009, 16:32
Re: Which will work correctly? - by MadeMan - 26.07.2009, 16:39

Forum Jump:


Users browsing this thread: 2 Guest(s)