By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,569 Members | 1,615 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,569 IT Pros & Developers. It's quick & easy.

Senior moment - can't remember a vb.net operator

P: n/a
Isn't there a new operator in vb.net that is a type of Or statement that
stops processing once a true condition is found, similar to C? Something
like OrIf?

E.g.

i = 10

if i = 10 <unknown Or-type operator> UnInstantiatedObject.member = 0
then
[process code]
end if
Since the first condition is true, the program won't blow up on the
UnInstantiatedObject operation.

Thanks,

Dave
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
I think u refer to

AndAlso

OrElse
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Dave" <da*****************************@stic.net> wrote in message
news:e8***************@TK2MSFTNGP10.phx.gbl...
Isn't there a new operator in vb.net that is a type of Or statement that
stops processing once a true condition is found, similar to C? Something
like OrIf?

E.g.

i = 10

if i = 10 <unknown Or-type operator> UnInstantiatedObject.member = 0
then
[process code]
end if
Since the first condition is true, the program won't blow up on the
UnInstantiatedObject operation.

Thanks,

Dave

Nov 21 '05 #2

P: n/a
OrElse

"Dave" <da*****************************@stic.net> wrote in message
news:e8*************@TK2MSFTNGP10.phx.gbl...
Isn't there a new operator in vb.net that is a type of Or statement that
stops processing once a true condition is found, similar to C? Something
like OrIf?

E.g.

i = 10

if i = 10 <unknown Or-type operator> UnInstantiatedObject.member = 0
then
[process code]
end if
Since the first condition is true, the program won't blow up on the
UnInstantiatedObject operation.

Thanks,

Dave

Nov 21 '05 #3

P: n/a
* "Dave" <da*****************************@stic.net> scripsit:
Isn't there a new operator in vb.net that is a type of Or statement that
stops processing once a true condition is found, similar to C? Something
like OrIf?


'OrElse'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4

P: n/a
To One Handed Man, Shiva, and Herfried,

Thanks to all. That's (OrElse) what I was looking for.

Now to figure out how to jam an AndAlso operator into my code to make it
complete. ;)

D.
Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.