IF statement help..



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

.



Relevant Pages

  • Re: IF statement help..
    ... "if the class field of objmember is equal to 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. ...
    (microsoft.public.scripting.vbscript)
  • Re: IF statement help..
    ... how do you write an LDAP query to ... "if the class field of objmember is equal to user" then.... ... exist and that blows up my script. ...
    (microsoft.public.scripting.vbscript)