You are checking for existence of mycclist in the first part of your if
statement but what happens if it doesn't exist.  You have an AND myCClist
that can't be evaluated because it probably doesn't exist.

________________________________
Rob Matlow
REM Web Solutions
[EMAIL PROTECTED]
519.884.4111 or 1.866.754.4111
www.remwebsolutions.com


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of A. Karl Zarudny
Sent: May 23, 2002 11:32 AM
To: [EMAIL PROTECTED]
Subject: [CFTALKTor] iif error


Hi everybody.

Any insight as to why

#iif(IsDefined("myCClist") AND myCClist IS NOT "", DE("cc=""#myCClist#"""),
DE(""))#

would be returning the following error?



An error occurred while evaluating the expression:


#iif(IsDefined("myCClist") AND myCClist IS NOT "", DE("cc=""#myCClist#"""),
DE(""))#


Error near line 280, column 3.
------------------------------------------------------------------------

Error resolving parameter MYCCLIST


ColdFusion was unable to determine the value of the parameter. This problem
is very likely due to the fact that either:

1.    You have misspelled the parameter name, or
2.    You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or
CFTABLE tag.


The error occurred while processing an element with a general identifier of
(#iif(IsDefined("myCClist") AND myCClist IS NOT "", DE("cc=""#myCClist#"""),
DE(""))#), occupying document position...

Is there a better way for me to do the same thing? This piece of code as I'm
sure you can guess, is going within a cfmail tag. myCClist is cfset and does
not result from a query. But regardless my thinking is that iif'ing with
"IsDefined" is checking for myCClist's existence and it having values.... OR
am I once again falling victim to sleep deprivation?

Thanks,
Karl

-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: "A. Karl Zarudny"
<[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)



-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: "Rob Matlow" <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)

Reply via email to