Skip to content

get

Input Stack:
key: String
Output Stack:
value: Any

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
PosInputOutput
0 k v

Store and reuse a complex query expression:

baseQuery,name,sps,:eq,
nf.app,myapp,:eq,
:and,
:set,
baseQuery,:get,
:sum
  • :set - Store a value in a variable
  • :sset - Store a value and also leave it on the stack