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 [2022/11/29 17:32] justincodex [2022/12/22 18:17] (current) justin
Line 15: Line 15:
 $my_codex["count"] = 10; $my_codex["count"] = 10;
 </code> </code>
-The script above creates a codex variable containing lookups for an item ID and count, then modifies the count to 10.+The script above creates a codex variable containing lookups for an item ID and a numeric count value, then modifies the count to 10. 
 + 
 +====Inserting a Value:==== 
 +<code bauxite> 
 +$my_codex = codex[]; 
 +$my_codex["unique_key"] = "Some Value"; 
 +</code> 
 +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"
 + 
 +~~NOTOC~~
codex.1669771968.txt.gz · Last modified: 2022/11/29 17:32 by justin