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!

> <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


More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial