Try this: <cfset request.dirsep = iif(FindNoCase("windows",server.os.name),de("/"),de("\"))>
Al Everett (Contractor) DIGICON Corporation National Institute of General Medical Science Information Resources Management Branch [EMAIL PROTECTED] 301.594.4082 -----Original Message----- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Friday, April 14, 2006 8: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:237740 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54