Sorry for noob question.
If a condition is tested with or, and the first condition is met, are the further conditions tested?
For example, is "b" even tested in the following code?...
bool a = true;
bool b = false;
bool c = false;
if (a || b)
{
c = true;
}
... or is the test cut short as soon as the first condition is met?
(edit)
Sorry, I answered my own question with this code.
if (test1() || test2())
{
Console.WriteLine("Complete");
}
static bool test1()
{
Console.WriteLine("test1");
return true;
}
static bool test2()
{
Console.WriteLine("test2");
return false;
}