Try this: <cfset a = 1> <cfset a = a + 1 /> <cfoutput>#a#</cfoutput>
Seems it doesn't run twice in CFMX. > -----Original Message----- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 28 May 2003 10:16 a.m. > To: CF-Talk > Subject: XHTML syntax (self-closing tags) > > Hey all... > > I know the topic of using XHTML syntax to have tags close themselves has > been discussed in the past, and IIRC, the answer was that it was simply a > matter of preference. > > OK...i like to keep consistent, so I've started doing things likse <cfset > foo = "bar" /> etc. > > Certain tags tho, will display twice (eg <cfdump var="#session#" />). So > here's an exception to the rule (the consistency that I was striving to > maintain begins to break down). Furthermore, it has me wondering if > <cfset > foo = "bar" /> actually sets the variable twice. Obviously, not an issue > as > far as the value of the variable, but certainly not terribly efficient. > > Is anybody actively/currently using this syntax? Any definitive answer on > whether or not <cfset /> executes twice? > > Thx, > charlie > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

