**
WESTMINSTER CITY COUNCIL
Please refer to the disclaimer beneath this message
**
Can anyone see what's wrong with this:
cfscript
If
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 anyone
Below is the corrected code, you had a few extra (s in front of your
isdefined
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)) {
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 since.
: Can anyone see what's wrong with this:
:
: cfscript
: 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
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
Comment inline:
cfscript
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
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;
8 matches
Mail list logo