This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 4rpl:commands:settableelement [2021/01/08 16:01] – external edit 127.0.0.1 | 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 ====== | ||
| - | SetTableElement(< | + | SetTableElement(< |
| ===== 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. | ||
| - | ===== Examples ===== | + | ===== Examples ===== |
| - | < | + | |
| - | | + | <code 4rpl> |
| - | | + | CreateTable -> |
| - | trace(GetTableElement(< | + | SetTableElement(< |
| + | GetTableElement(< | ||
| + | |||
| + | # alternate syntax | ||
| + | # Use curly braces around to surround the key. | ||
| + | 42 -> | ||
| + | |||
| + | </ | ||
| - | # | ||
| - | #Use curly braces around to surround the key. | ||
| - | 42 -> | ||
| - | </ | ||
| < | < | ||
| + | |||