I think that will return the string "form.categories" instead of the value
of the variable.  I would have said to try:

IIF(isdefined("#form.categories#"), #form.categories#, de(''))

-----Original Message-----
From: Geoffrey V. Brown [mailto:[EMAIL PROTECTED]]
Sent: 29 August 2000 14:30
To: [EMAIL PROTECTED]
Subject: RE: Can't work out IIF/IsDefined quirk



Hi,
Use this:

#IIF(isdefined("form.categories"), "form.categories", de(''))#

Thanks,
Geoffrey Vail Brown
______________________________
Director of Online Operations
Deerfield.com
231.935.4640
[EMAIL PROTECTED]

Check out our complete line of Internet leveraging software at:
http://www.deerfield.com

> -----Original Message-----
> From: Paul Johnston [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 29, 2000 9:20 AM
> To: Cf-Talk
> Subject: Can't work out IIF/IsDefined quirk
>
>
> I got this:
>
> Error Diagnostic Information
>
> An error occurred while evaluating the expression:
>
> #IIF(IsDefined("form.categories"), form.categories, DE(''))#
>
> Error near line 51, column 11.
> ------------------------------------------------------------------
> ----------
> ----
>
> Error resolving parameter FORM.CATEGORIES
>
> The specified form field cannot be found. This problem is very
> likely due to
> the fact that you have misspelled the form field name.
>
> It's supposed to check if it's been defined, and then if it has output it,
> and if it hasn't, output nothing.
>
> IT'S NOT WORKING!
>
> Anyone any idea why?
>
> Paul
>
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
_talk or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.


----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to