Re: error with a piece of cfscript code and I can't see what's wrong?

2002-09-30 Thread S . Isaac Dealey
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; > ***

Re: error with a piece of cfscript code and I can't see what's wrong?

2002-09-30 Thread Jochem van Dieten
Comment inline: If (NOT IsDefined("Form.business_types") AND IsDefined("Form.residents")) { // "(" removed session.ResidentsOnly = yes; // Don't you need quotes around this yes? } Else { If (NOT IsDefined("Form.residents")) AND (IsDefined("Form.business_type")) { // "(" removed se

RE: error with a piece of cfscript code and I can't see what's wrong?

2002-09-30 Thread Mike Townend
It could be that your if's are not using one bracket set for the entire check.. i.e. You haveif () 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 1

RE: error with a piece of cfscript code and I can't see what's wrong?

2002-09-30 Thread Ben Doom
: Can anyone see what's wrong with this: : : : If (NOT IsDefined("Form.business_types") AND : (IsDefined("Form.residents")) { : session.ResidentsOnly = yes; : } On the next line, you're closing the if clause and then tryin

RE: error with a piece of cfscript code and I can't see what's wrong?

2002-09-30 Thread Bryan F. Hogan
P.S. Your if and else if should look like this. if (not isdefined('form.business_types') and isdefined('form.residents')) not like if (NOT IsDefined("Form.business_types") AND (IsDefined("Form.residents")) You where closing your if statement and then trying to continue it, hope that makes sin

RE: error with a piece of cfscript code and I can't see what's wrong?

2002-09-30 Thread Bryan F. Hogan
Below is the corrected code, you had a few extra "("s in front of your isdefined 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.Bus

Re: error with a piece of cfscript code and I can't see what's wrong?

2002-09-30 Thread Jerry Johnson
And which line is line 67? >>> [EMAIL PROTECTED] 09/30/02 10:55AM >>> ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Can any