Re: IF statement help..

Tech-Archive recommends: Fix windows errors by optimizing your registry



If objMember.Class = "user" AND (<LDAP query>) Then
... do something
End If

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

<dankennedy24@xxxxxxxxx> wrote in message
news:1156746774.583541.293580@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
How can I make the following line go from

"if the class field of objmember is equal to user" then....
to
"if the class field of objmember is equal to user AND if the LDAP field
named mail exists in the record" then....

Here's my current if statement:

If ObjMember.Class = "user" Then

I ran into an issue in a result set where I captured user records and
asked my script to return the mail field but the mail field didn't
exist and that blows up my script.

Any help is appreciated.

Thanks,
Dan



.