It could be that your if's are not using one bracket set for the entire check..
i.e. You have if () AND () { Try changing them to if (() AND ()) { And see if that helps... HTH -----Original Message----- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 15:55 To: CF-Talk Subject: error with a piece of cfscript code and I can't see what's wrong? ********************************************************************** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ********************************************************************** Can anyone see what's wrong with this: <cfscript> If (NOT IsDefined("Form.business_types") AND (IsDefined("Form.residents")) { session.ResidentsOnly = yes; } Else If (NOT IsDefined("Form.residents")) AND (IsDefined("Form.business_type")) { session.BusinessOnly = yes; session.ListOfBusiness = "#Form.business_types#"; } Else { session.ResidentsAndBusiness = yes; session.ListOfBusiness = "#Form.business_types#"; } </cfscript> This is the error I keep getting: Error Diagnostic Information Just in time compilation error Invalid parser construct found on line 67 at position 79. ColdFusion was looking at the following text:{Invalid expression format. The usual cause is an error in the expression structure. The last successfully parsed CFML construct was a CFSCRIPT tag occupying document position (66:3) to (66:12). ********************************************************************** Westminster City Council switchboard: +44 20 7641 6000 ********************************************************************** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ********************************************************************** ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists