getpersistentvarint

  • Version 9.4.4 and earlier: getpersistentvarint() function not available.
  • Version 9.4.5 and later: getpersistentvarint() function available.

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.

int getpersistentvarint(name)
name Required. The name of the variable to be retrieved. This can be any text string.

An integer containing the variable contents, or zero if the variable does not exist or has expired.

myflag = getpersistentvarint("flag_" + submituser)