Rick...

It appears you've got quotes around your expression. Remove those and you
should be good.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Friday, April 14, 2006 7:02 AM
To: CF-Talk
Subject: IIF help


I always have trouble using IIF...

Why doesn't this work?

<cfset request.dirsep = iif("lcase(server.os.name) contains
'windows'",de("/"),de("\"))>

It gives me this error:

Parameter validation error for function IIF.
The value of the parameter 1, which is currently "lcase(server.os.name)
contains 'windows'", must be a boolean value.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237743
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to