2

Is there a more easy way to inverse a boolean instead of using a IF ELSE construction?
Normally I would use the ! infront of a boolean value. But that doesn't do the trick in Navision

Pierre
  • 488
  • 4
  • 20
Martiveen
  • 45
  • 5

2 Answers2

8

You can use the NOT keyword in place of !.

Alex Peck
  • 4,603
  • 1
  • 33
  • 37
0

You can use this example to invert a boolean variable Value:

PROCEDURE InvertValue(VAR Value @ Boolean;);
begin
  Value := NOT Value;
end;