Re: vb has OrElse
- From: "Kevin Spencer" <unclechutney@xxxxxxxxxxxx>
- Date: Thu, 11 Jan 2007 09:28:06 -0500
Yes.
|| = OrElse
| = Or
&& = AndAlso
& = And
--
HTH,
Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com
Where there's a Will, there's a William.
"rodchar" <rodchar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BB3FBFC0-38B8-4664-85F9-72D18226A079@xxxxxxxxxxxxxxxx
hey all,
does c# have an equivalent to vb's OrElse operator which short-circuits
the
2nd comparison if 1st comparison is true?
if a=1 orElse b=2...
if a=1 then b=2 is not even looked at.
thanks,
rodchar
.
- Prev by Date: Re: Problem in running .Net Service on a Quad Processor
- Next by Date: Re: insert a movie file as a binary data in an xml
- Previous by thread: Re: vb has OrElse
- Next by thread: Microsoft OneCare conflicting with VS.NET 2005?
- Index(es):
Relevant Pages
|