VarName | Name of variable in globals table to be decremented. |
Amount | How much to decrement the entry values by. |
incr
.You may wish to take a look at the documentation about the XxxDbGlobal commands: About XxxGlobal.
Check About Configuration for Database Use for info about how to set up Gen for using database-related commands.
This code: (1) Creates a global with a certain value, (2) Decrements it, (3) Shows that the value is one less.
% SetDbGlobal my_variable 11
11
% DecrDbGlobal my_variable
10
% GetDbGlobal my_variable
10