structInsert

Inserts a key-value pair into a structure.

structInsert(structure, key, value [, allowoverwrite]) → returns boolean

Argument Reference for the structInsert function

structure

Required: Yes
Structure to contain the new key-value pair.

key

Required: Yes
Key that contains the inserted value.

value

Required: Yes
Value to add.

allowoverwrite

Required: No
Default: NO
Whether to allow overwriting a key. Default: False.


Fork me on GitHub