This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:gettableelement [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:gettableelement [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | < | + | < |
+ | < | ||
+ | |||
+ | <WRAP tabs> | ||
+ | * [[4rpl: | ||
+ | * [[4rpl: | ||
+ | </ | ||
====== GetTableElement ====== | ====== GetTableElement ====== | ||
Line 8: | 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 ===== | ||
Line 13: | Line 21: | ||
| | ||
| | ||
- | | + | |
# | # |