If I have an If statement with 2 conditions - and the first one fails, will the second condition even be considered or will it be directly on else ? So, in the following example, if myList.Count == 0 , will myString be compared with the value "value" or will it just be right on the else ?
if(myList.Count > 0 && myString.Equals("value")) { //Do something } else { //Do something else }
c # if-statement conditional-statements
JᴀʏMᴇᴇ Jul 06 '12 at 8:28 2012-07-06 08:28
source share