The new current value for the variable.
|VarName||Name of variable in globals table to be decremented.|
|Amount||How much to decrement the entry values by.|
If no variable with the given name can be found in the database then a new variable with that name will be created at 0 and decremented to -1. This is consistent with similar commands and specifically
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.
For information regarding exceptions / errors, see here
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
% DecrDbGlobal my_variable
% GetDbGlobal my_variable