26.07.2009, 16:39
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
}
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
}