You've either got an extra ( before the 2nd IsDefined("form.residents") or
are missing a ) after it...

                        If (NOT IsDefined("Form.business_types") AND
 (IsDefined("Form.residents")) {
                                session.ResidentsOnly = yes;


> **********************************************************************
> 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.
> **********************************************************************

> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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

Reply via email to