Increment and Decrement Operators

For number variables, BDL supports an increment (--) and a decrement (++) operator. The increment operator increases a number by one, the decrement operator decreases a number by one.

Syntax

Stat = ident [ "[" Expr2 "]" ] [ "++" | "--" ] .

Example

transaction demo
var
  i : number init 2;
begin
  i++; // i is now 3
  i--; // i is now 2
end;