One way to get around the, "This version will do it but that one wont"
argument, is to use the iif() function.

Let me know if you need help with it.

--K

-----Original Message-----
From: Nat Papovich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 23, 2000 9:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: if conditions evaluation in CF 4.0 and CF4.5


I agree Noam - 4.0.1 lets you do <CFIF IsDefined('myvar') AND myvar IS
"foo">.

Nat Papovich
ICQ 32676414
"Whatever you do may seem insignificant,
but it is most important that you do it." -M. Gandhi


-----Original Message-----
From: BOROVOY Noam [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 23, 2000 8:06 AM
To: '[EMAIL PROTECTED]'
Subject: RE: if conditions evaluation in CF 4.0 and CF4.5


Almost sure 4.0.1 added short circuit evaluation

        ----------
        From:  Bert Dawson [SMTP:[EMAIL PROTECTED]]
        Sent:  Wednesday, 23 August 2000 17:05
        To:  '[EMAIL PROTECTED]'
        Subject:  RE: if conditions evaluation in CF 4.0 and CF4.5

        cf4.5 has short circuit boolean processing (i think thats what its
        called...)

        so in cf4.5 you can use:

            <CFIF IsDefined('myvar') AND myvar IS "foo">
....
            </CFIF>

        where in cf4.0 you had to do:

            <CFIF IsDefined('myvar')>
                <CFIF myvar IS "foo">
                    ....
                </CFIF>
            </CFIF>

        Bert

        > -----Original Message-----
        > From: wish wish [mailto:[EMAIL PROTECTED]]
        > Sent: 23 August 2000 15:51
        > To: [EMAIL PROTECTED]
        > Subject: if conditions evaluation in CF 4.0 and CF4.5
        > 
        > 
        > a statement like :
        > <cfif parameterexists(url.action) AND url.action IS "hello">
        > ....
        > </cfif>
        > 
        > someone told me that CF 4.0 will evaluate both, even when the 
        > first one is 
        > false.  and CF 4.5 will only evaluate the second one if the 
        > first is true.
        > is this correct?
        > 
        > thanks in advance
        > ______________________________________________________________
        > __________
        > Get Your Private, Free E-mail from MSN Hotmail at 
        http://www.hotmail.com

        
----------------------------------------------------------------------------
        --
        To Unsubscribe visit
        
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
        send a message to [EMAIL PROTECTED] with
'unsubscribe' in
        the body.
        
----------------------------------------------------------------------------
--
        To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to