When "OR" Is Better Than "ORELSE" In .NET

Jan 8, 2010

My doubt is about OR and ORELSE. There is any situation where OR is better to use than ORELSE ? And if not, why they don't just "upgrade" de internal code ?

View 3 Replies


ADVERTISEMENT

.net - Shortcircuiting: OrElse Combined With Or

Sep 9, 2010

If I have the following a OrElse b and a is True then clearly b is never evaluated. But if I add an Or, then what?a OrElse b Or c

Does/should c get evaluated? And what if I put in some brackets?Apologies if this is basic. Of course I can test for the answer myself but I can't find this question answered here or elsewhere. Lots of questions dealing with Or versus OrElse but nothing dealing with Or with OrElse

View 4 Replies

Difference Between (OrElse And Or) And (AndAlso And And)?

Dec 7, 2011

What is the difference between (OrElse and Or) and (AndAlso and And)?Is there any difference in their performances, let say the correctness benefit?? Is there any situation that I shoudn't use OrElse and AndAlso?

View 4 Replies

Unexpected 'OrElse' Behavior In Linq Query

Feb 27, 2012

I'm having problems with the following Linq query (demandNb is a filter option, as a string):

[Code]...

My goal is to get all demands for the database if the filter fields is empty. If there is a filter, the function should return all demands that match the filter. Currently, when I try to convert the IQueryable collection to a list using .ToList(), the following error is thrown: Conversion from string "" to type 'Double' is not valid.

[Code]...

View 1 Replies

Difference Between "Or" And "OrElse"?

Jul 13, 2011

What is difference between "Or" and "OrElse"?

If condition [ Or ] condition [
Then ] [ statements ] End
If

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved