This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:gettableelement [2021/01/24 19:59] – added get/set tabs Sanian | 4rpl:commands:gettableelement [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | < | + | < |
+ | < | ||
<WRAP tabs> | <WRAP tabs> | ||
Line 13: | Line 14: | ||
Retrieves an element from a table and pushes it to the stack. Note that keys are case sensitive strings. | Retrieves an element from a table and pushes it to the stack. Note that keys are case sensitive strings. | ||
A special syntax can also be used to retrieve a table element. See the example below. | A special syntax can also be used to retrieve a table element. See the example below. | ||
+ | |||
+ | If the specified element (key) does not exists in the table, the return value will have a type of NULL and can be tested with the [[GetType]] command. | ||
===== Examples ===== | ===== Examples ===== |