07-16-2008, 09:36 PM
|
#7 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 359
Thanks: 3
|
Don't worry about the order in which the conditions are evaluated. But if you asked, I'll answer: the order in which the methods return types is checked is the same for both cases. The difference is that in the first case, both conditions are evaluated, while in the second case (nested), if the first condition fails, the parser will never hit the second condition. How you check the conditions is entirely up to you, depending on what you need to accomplish.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|