balanced parentheses

hi team:

In my scripter:

A := 10;
B := 20;
C := 30;

if A < B and C > B then
ShowMessage('Fine');

Do not show "Fine"

so

if (A < B) and (C > B) then
ShowMessage('Fine');

Show "Fine" OK.

The question is, always i must create sentence with balanced parentheses ?

Because, this run fine too !

if A < B and B < C then
ShowMessage('Fine');

Yes, just like regular Pascal. Logical operators (and, or, xor) have higher precedence than comparison operators.