Skip to content

set

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

Set the value of a variable in the variable store. Variables can be retrieved later using :get and are useful for storing intermediate results, reusing complex expressions, or parameterizing queries.

Parameters

  • key: The variable name (string identifier)
  • value: The value to store (can be any type: string, number, expression, list)

Examples

Setting a simple variable:

k,v,:set
PosInputOutput
0 v
1 k

This stores the value "v" under the key "k", removing both items from the stack.

  • :get - Retrieve stored variable values
  • :sset - Set variables with different stack behavior