Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added how to access a maps key from a second passed global variable.

...

So if you have a complex object (such as a 'Filter') and you store it in a global variable, this global variable can be retrieved from the global cache as a 'Filter' object as long as you are in the first pass. But during the second pass, if you retrieve it you will get the JSON representation of this object! Making use of this in your logic might cause errors.

Accessing the key of a map stored as a global variable in second pass is done using the syntax:

api.global.variable.map[(key)]