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

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

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
 
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
 
OrElse

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
 
* "Dave said:
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'.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top