getpersistentvarint
- Version 9.4.4 and earlier: getpersistentvarint() function not available.
- Version 9.4.5 and later: getpersistentvarint() function available.
Description
The getpersistentvarint() procedure retrieves a persistent variable from the local database. If the variable does not exist, or has expired, it returns the default 0.
Syntax
int getpersistentvarint(name)
Arguments
name | Required. The name of the variable to be retrieved. This can be any text string. |
Return Values
An integer containing the variable contents, or zero if the variable does not exist or has expired.
myflag = getpersistentvarint("flag_" + submituser)
For more information, see the following: