× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



--- Scott Johnson <sjohnson@xxxxxxxxxxxxx> wrote:
> 
> What you are missing is that the computer IS doing the (X < 10) first.
> As soon as it gets done evaluating that part of the formula it goes back
> to the default left to right processing. If X = 5, the formula would
> become A AND B AND 'true'
> 
> --- Scott

Um, I think you just agreed with me, Scott.  I said the parantheses guaranteed 
that it would be
done first, whereas Doug, the author of that snippet, said otherwise.  So, now, 
what if we turn
the expression X < 10 into ARRAY(I) = 'ABC' and presume I is zero?  Doug's post:

>What if your example were thus:
>    A AND B AND X < 10

That becomes the equivalent of 

  A and B and ( X < 10 )

Thus we are now reduced to only have AND clauses, which are short-circuit
evalutated from left to right.  So unless both A and B are true, it never has to
evaluate ( X < 10 ).

- Dan

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.