User Tools

Site Tools


codex

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
codex [2025/03/11 16:46] justincodex [2025/03/11 17:18] (current) justin
Line 31: Line 31:
 The script above creates an empty codex variable, then inserts a new key/value pair with a key of "unique_key" and a [[string]] value of "Some Value". The script above creates an empty codex variable, then inserts a new key/value pair with a key of "unique_key" and a [[string]] value of "Some Value".
  
-===Iterating All Keys===+====Iterating All Keys:====
 <code bauxite> <code bauxite>
 $my_codex = codex["name": "Stumpy", "genus": "Sciurus"]; $my_codex = codex["name": "Stumpy", "genus": "Sciurus"];
 for $key in $my_codex do for $key in $my_codex do
-   log_message("Key: " + $key + ", Value: " + str($my_codex[$key]));+   display_message("Key: " + $key + ", Value: " + str($my_codex[$key]));
 end; end;
 </code> </code>
codex.1741736782.txt.gz · Last modified: 2025/03/11 16:46 by justin