set
  • 30 Oct 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

set

  • Dark
    Light
  • PDF

Article summary

Description

Sets a value into an avatar's memory.


Input Parameters

NameTypeRequiredDescription
nidTextYesNative vocabulary ID (NID)
valueAnyYesValue to store into memory
[timeStamp]DateTimeNoTemporal time stamp to associate with value

Returns

No return value.


Examples

// prepare data element of interest
// definitions (NIDs) are found in Symmetry's 'Native Vocabulary'
var nid = "ABC123";

// store value into memory
// associate value with current time (in universal format)
avatar.set(nid, 64, system.nowUtc);

Remarks

Symmetry is an open integration platform that allows software projects across the globe to share information via avatars. Every avatar has a memory where information is stored. Use this function to store information into this memory.

Definition

Avatars are a special Symmetry concept. An avatar represents any person, place, or thing. Learn more at The Symmetry Project.


What's Next