ParaDataStore.IncrementData

Declaration

ok, value, info = IncrementData(key, delta, options)

Parameters

Parameter NameTypeDescription
keystringKey of the data to be incremented.
deltanumberValue.
optionsParaDataSetOptionsAdditional metadata.

Return Values

Response NameTypeDescription
okintIf the value is 0, the operation is successful. The subsequent fields are the new value and detailed information.
valuenumber, boolean, string, or table containing only these typesIf the operation is successful, the new value is returned. Otherwise, an error message is returned.
infoParaDataInfoIf the operation is successful, the detailed information (such as version and metadata) is returned.

Description

Increments the value corresponding to a key and returns the new value.