CFFILE APPEND...
<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 trying write dynamic output append text file. can see put if statement in output try , generate dynamic output. when writes line though, appends this: <cfif x gt y>yes</cfif> , not "yes yes" want to. know of work around this. want include multiple dynamic expressions in append line, don't want cf code 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 trying write dynamic output append text file. can see put if statement in output try , generate dynamic output. when writes line though, appends this: <cfif x gt y>yes</cfif> , not "yes yes" want to. know of work around this. want include multiple dynamic expressions in append line, don't want cf code show up...
thanks!
> <cffile action="append" addnewline="yes" file="forsale.txt" output="<cfif x gt
> y>yes</cfif> <cfif y lt x>yes</cfif>">
you can't embed 1 cf tag within cf tag. need revise
your approach slightly, here. i'd either use iif(), or pre-set string
you intend use output.
--
adam
> y>yes</cfif> <cfif y lt x>yes</cfif>">
you can't embed 1 cf tag within cf tag. need revise
your approach slightly, here. i'd either use iif(), or pre-set string
you intend use output.
--
adam
More discussions in ColdFusion
adobe
Comments
Post a Comment