Appendix B. Expressions and call data
| JSON | Meaning |
|---|---|
| {"$var":"score"} | Read runtime variable. |
| {"$context":"entityId"} | Read the exact event field. |
| {"$this":"id"} | Read captured caller ID. |
| {"$this":"name"} | Read caller property. |
| {"$param":"amount"} | Read named visual-function parameter. |
| {"$arg":0} | Read positional argument zero. |
These special one-key dictionaries can be nested in arrays or dictionaries. Ordinary strings stay strings. No arithmetic formula parser is implied by the lookup syntax.
{
"type":"CallScriptFunction",
"functionKey":"visualScripts/visual_tools/award",
"parameters":{"amount":{"$var":"pulse_count"}},
"resultVariable":"result_value"
}That object is one action, suitable as action data in the corresponding context. It is not a whole project or graph. In an actual visual node, the type is on the node and the remaining fields belong in its data.
An entity-typed function parameter containing this resolves to the owner. A string parameter containing the same word remains ordinary text. Type and target context matter.
