[Home] [By Thread] [By Date] [Recent Entries]
cert21 wrote:
I know in many languages like Java and php when testing for multiple conditions Technically it is a question about XPath expressions, if you look at the specification http://www.w3.org/TR/xpath#booleans then it clearly says for 'and' expressions: "The right operand is not evaluated if the left operand evaluates to false." And for 'or' expressions: "The right operand is not evaluated if the left operand evaluates to true." So it is not question about optimization, the language specification prescribes what to do. -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|

Cart



