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

try that, eh?

Also, no need for DE(), just use all teh quotes luke!  " ' foo ' " like that

DK

On 4/14/06, Rick Root <[EMAIL PROTECTED]> wrote:
> 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:237741
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

Reply via email to