bweno
2007-01-03 05:35:43 UTC
<cfset x = 1>
<cfset y = 0>
<cffile action="APPEND" addnewline="Yes" file="forsale.txt" output="<cfif x gt
y>yes</cfif> <cfif y lt x>yes</cfif>">
I am trying to write dynamic output to append to a text file. As you can see I
put an if statement in the output to try and generate my dynamic output. When
it writes the line though, it appends this: <cfif x gt y>yes</cfif> and not
just "yes yes" like I want it to. Does anyone know of a work around for this. I
want to include multiple dynamic expressions in the append line, but I don't
want the CF code to show up...
Thanks!
<cfset y = 0>
<cffile action="APPEND" addnewline="Yes" file="forsale.txt" output="<cfif x gt
y>yes</cfif> <cfif y lt x>yes</cfif>">
I am trying to write dynamic output to append to a text file. As you can see I
put an if statement in the output to try and generate my dynamic output. When
it writes the line though, it appends this: <cfif x gt y>yes</cfif> and not
just "yes yes" like I want it to. Does anyone know of a work around for this. I
want to include multiple dynamic expressions in the append line, but I don't
want the CF code to show up...
Thanks!