Quick question about returning from a nested statement
If I have something like a loop or a set of if/else statements, and I want to return a value from within the nest (see below), is the best way of doing this to assign the value to a field or property and return that? See below: bool b; public bool ifelse(int i) { if(i == 5) { b = true; } else { b = false; } return b; } ...