Skip to main content

get

memory.get(key)

db.get(key)

Description

Returns a previously stored variable in that datastore.

Parameters

ParameterTypeExplanation
keyStringThe variable name in that datastore

Example

c = memory.get("counter")
c = memory.counter // does the same thing as the line above (by using memory.variable_name)
memory.put("counter", c+1)