$., Meta Values (json)
Less than 1 minutevariables
$.
, Meta Values (json)
State information for iteration blocks
Description
Meta Values, $.
, provides state information for blocks like foreach
, formap
, while
and lambdas.
Meta Values are a specific to the block, so you will need to refer to each iteration structure's documentation to check what information is exposed via $.
Examples
» %[Monday..Friday] -> foreach day { out "$.i: $day" }
1: Monday
2: Tuesday
3: Wednesday
4: Thursday
5: Friday
Other Reserved Variables
- Numeric (str): Variables who's name is a positive integer, eg
0
,1
,2
,3
and above $.
, Meta Values (json): State information for iteration blocksARGV
(json): Array of the command name and parameters within a given scopeCOLUMNS
(int): Character width of terminalEVENT_RETURN
(json): Return values for eventsHOSTNAME
(str): Hostname of the current machineMUREX_ARGV
(json): Array of the command name and parameters passed to the current shellMUREX_EXE
(path): Absolute path to running shellPARAMS
(json): Array of the parameters within a given scopePWDHIST
(json): History of each change to the sessions working directoryPWD
(path): Current working directorySELF
(json): Meta information about the running scope.SHELL
(str): Path of current shell
See Also
- For Each In List (
foreach
): Iterate through an array - For Each In Map (
formap
): Iterate through a map or other collection of data - Loop While (
while
): Loop until condition false [{ Lambda }]
: Iterate through structured data
This document was generated from gen/variables/meta-values_doc.yaml.