An interesting thing

Hi every body I have noticed one interesting thing in navision. For a condition checking I had given IF ExcelRep = TRUE AND Graph = TRUE THEN // do processing (1) But control go to processing (1)- step even if both the conditions were false. But the interesting thing is this will not be happen all the times. Is there any setting for it ? But it will stable if we use brackets as follows. IF (ExcelRep = TRUE) AND (Graph = TRUE) THEN // do processing (1) Thanks.

check operators hierarchy, AND executed before = it the same as: IF ((TRUE AND Graph)= ExcelRep)=TRUE THEN … what for are you using = ? IF ExcelRep AND Graph THEN