This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 4rpl:commands:settableelement [2021/01/14 16:27] – [SetTableElement] Sanian | 4rpl:commands:settableelement [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| - | < | + | < |
| + | < | ||
| + | |||
| + | <WRAP tabs> | ||
| + | * [[4rpl: | ||
| + | * [[4rpl: | ||
| + | </ | ||
| ====== SetTableElement ====== | ====== SetTableElement ====== | ||
| Line 7: | Line 13: | ||
| ===== Description ===== | ===== Description ===== | ||
| Sets an element in a table. Note that keys are case sensitive strings. | Sets an element in a table. Note that keys are case sensitive strings. | ||
| + | |||
| + | For doing the same thing but with arguments in order of **value**, **table**, **key**, see [[4rpl: | ||
| + | |||
| A special syntax can also be used to set a table element. See the example below. | A special syntax can also be used to set a table element. See the example below. | ||
| Line 12: | Line 21: | ||
| <code 4rpl> | <code 4rpl> | ||
| - | CreateTable -> | + | CreateTable -> |
| - | | + | SetTableElement(< |
| - | trace(GetTableElement(< | + | GetTableElement(< |
| - | #alternate syntax | + | # alternate syntax |
| - | #Use curly braces around to surround the key. | + | # Use curly braces around to surround the key. |
| - | 42 -> | + | 42 -> |
| </ | </ | ||