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;
> ***
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
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
: 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
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
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
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
7 matches
Mail list logo