_expression_ may be used with CFML tags as well as in output, so this is valid:
<cfset result = var2-var1>
as is
<cfoutput>#var2-var1#</cfoutput>
This is not the intersting part of CFMX. This is:
You can embed CFML comments in begin tags (not just tag bodies), functions calls, and variable text in pound signs. ColdFusion ignores the text in comments such as the following:
<cfset MyVar = var1 <!--- & var2 --->>
<cfoutput>#Dateformat(now() <!---, "dddd, mmmm yyyy" --->)#</cfoutput>
Yep, this is at http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/Elements13.htm
I find this so bizarre.
Johnny
>I thought I had seen someone on this list, when MX came out, warning
>everyone to not use it due to it broke a convention (or something like that)
>and it may not be supported in the future versions due to MM did not
>officially acknowledge it as a feature. So thus I tried to not use it, but
>I did find it real handy at times.
>
>
>
>I guess I should read MM docs and not believe everything I read on this
>list. :-)
>
>
>
>Does this method of mathematical calculations have an official name? Other
>then "performing mathematical calculations between # signs".
>
>
>
>Mark W. Breneman
>-Cold Fusion Developer
>-Network Administrator
> Vivid Media
> [EMAIL PROTECTED]
> www.vividmedia.com
> 608.270.9770
>
> _____
>
>From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 20, 2004 3:32 PM
>To: CF-Talk
>Subject: Re: Is it a bug or not a bug?
>
>
>
>Yes I'm sure they do. I don't know about good or bad, I really haven't
>thought about it. It does work.
>
>Mark W. Breneman wrote:
>
>> Does MM officially support performing mathematical calculations between #
>> signs? I was sorta under the impression that this was considered not a
>good
>> practice. Regardless it is handy.
>
> _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

