Tom/Sean

Ben Forta actually explains this in detail in one of his CF5.0 books and it
actually looked powerful.. since u are evaluating/declaring/assigning
variables
all at once...in one statement ...ran fast as well.
I was getting the impression.. JRUN didnt like ";"..since it ends the
statement in java.
>> <cfset x=1>
>> <cfset Result=iif(x,"z='Arg1';5","z='Arg2';10")>
Anyways i guess re-write....

Does CFMX advice any other way..than writing CFIF's or CFSCRIPT IF's?

Thanks
Joe


-----Original Message-----
From: Sean A Corfield [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 1:03 PM
To: CF-Talk
Subject: Re: Dynamic Evaluation(IIF) changed in CFMX?


On Tuesday, September 3, 2002, at 09:43 , Tom Harwood wrote:
> "Joe Eugene" <[EMAIL PROTECTED]> wrote:
>> You used to be able to do in CF5.0
>> <cfset x=1>
>> <cfset Result=iif(x,"z='Arg1';5","z='Arg2';10")>
>
> Interesting.  That's actually a primitive form of CFSCRIPT -- the CF 4.x
> and CF 5 expression parser was actually the CFSCRIPT parser in a
> locked-down mode.  Mostly locked-down, as we see here...
>
> CFMX's parser draws clearer distinctions between CFSCRIPT and expressions.
>   On balance, I'd have to call it a CF5 bug, I'm afraid.

Just to clarify Tom's comment, this is one of those cases where should
*not* have worked in CF5 but unfortunately it did. It wasn't how the
language was defined, it just happened to be permitted by a bug in CF5...

So, CFMX is correct - the expression was never meant to be legal.

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to