get
Input Stack:
|
⇨ | Output Stack:
|
Retrieve the value of a variable from the variable store and push it onto the stack. Variables are set using the :set operation and can store any type of value including strings, numbers, expressions, and lists.
This is useful for storing intermediate results, reusing complex expressions, or parameterizing queries with values that can be changed without modifying the entire expression.
Parameters¶
- key: The name of the variable whose value should be retrieved
Examples¶
Basic variable storage and retrieval:
k,v,:set, k,:get
Pos | Input | Output |
---|---|---|
0 | k | v |
Store and reuse a complex query expression:
baseQuery,name,sps,:eq, nf.app,myapp,:eq, :and, :set, baseQuery,:get, :sum