you make it sound so painfulRobby said:I have to agree with quwiltw...
I'd say if someone gets this "downside" it's a result of poor coding technique rather than AndAlso/OrElse. I think it's generally a bad idea to have functions that change stuff in your expressions.bpayne111 said:AndAlso and OrElse have thier downsides...
ie. Say the Second part of your evaluation is a Function that changes a variable and you need that value reguardless of the outcome of your statment.
if(var!=null && (int)var > 5)
...
if(var!=null)
if((int)var > 5)
quwiltw said:you make it sound so painful