Показать сообщение отдельно
Старый 27.07.2006, 03:11   #2  
gbelot is offline
gbelot
Участник
 
16 / 10 (1) +
Регистрация: 20.06.2006
I am wondering why you think it is strange. Axapta just executes them in the order, and because '&&' and '||' are basically equal, they get executed like this:

1. B || C returns 'true'
2. 'true' && D returns 'false', because D is false
3. A && 'false' returns false.

As a good practice we always are trying to reinforce the expected order of operations with parenteses.