Question
IIF question
I'm experimenting with a IIF to choose with file gets used
with <cffile>.
I have:
<cffile action="read" file="#iif(xmlFileYear eq 2008),de("D:\home\salleboise.com\wwwroot\sb1.xml"),de("D:\home\salleboise.com\wwwroot\sb2009.xml")#"
variable="xmldoc">
but when I run the code, I'm getting:
Invalid CFML construct found on line 192 at column 54.
ColdFusion was looking at the following text:
,
The CFML compiler was processing:
An expression that began on line 192, column 29.
The expression might be missing an ending #, for example, #expr instead of
#expr#.
The tag attribute file, on line 192, column 23.
A cffile tag beginning on line 192, column 2.
Did I miss something?????
I have:
<cffile action="read" file="#iif(xmlFileYear eq 2008),de("D:\home\salleboise.com\wwwroot\sb1.xml"),de("D:\home\salleboise.com\wwwroot\sb2009.xml")#"
variable="xmldoc">
but when I run the code, I'm getting:
Invalid CFML construct found on line 192 at column 54.
ColdFusion was looking at the following text:
,
The CFML compiler was processing:
An expression that began on line 192, column 29.
The expression might be missing an ending #, for example, #expr instead of
#expr#.
The tag attribute file, on line 192, column 23.
A cffile tag beginning on line 192, column 2.
Did I miss something?????
