Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

&& statement problem

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I'm having trouble working out why the && statement is not working. Below is what I'm trying to do:-

-----------------
if (SendToTDC = "TDC" && SendToPAB = "PAB") then
strTo = "md@hotmail.com"
end if

----------------
The error message I get is:-
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/em/configit.asp, line 32 (the above bit of code), column 23
 
&& is JAVA and/or C++

replace it with AND

:)
Paul Prewett
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top