When "OR" Is Better Than "ORELSE" In .NET
Jan 8, 2010My 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 RepliesMy 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 RepliesIf 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
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 RepliesI'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]...
What is difference between "Or" and "OrElse"?
If condition [ Or ] condition [
Then ] [ statements ] End
If