On 12/11/18 8:37 PM, Johannes Castner wrote:
What I’d like to do is just find the last value; I won’t know what the value is so searching for a number isn’t what I need but rather I need to search for a user (by name or ID) and then get her current score and subtract or add something to it, according to some user behavior. Ideally I’d have a function update_score(user, number), which gets the last score and then adds or subtracts or multiplied or divides that score by the supplied number. Does that make sense?
If all you need is the last value then, for now, I would recommend to attach a Value (cog-set-value!, etc) to your user id, as I initially presented.
Nil -- You received this message because you are subscribed to the Google Groups "opencog" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/opencog. To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/e46b32e8-02d1-7c6d-aa20-8d711ad56e3f%40gmail.com. For more options, visit https://groups.google.com/d/optout.
