Testasd » History » Revision 53
« Previous |
Revision 53/73
(diff)
| Next »
Per Amundsen, 02/07/2023 12:02 PM
Multidimensional arrays¶
/marray -a <name> <type> <key/label/item> <value>
add item
/marray -e <name> <N> <type> <key/label/item> <value>
edit item
/marray -d <name> <N>
delete item
/marray -f <name>
delete/free table
$marray(name, N, [N..])
gets the Nth item in a table, subsequent N parameters gets the Nth item from a sub table, infinite sub depth.
Switches
.item - Get item key/label/item.
.value - Get item value.
.type - Get item type. (0 = text, 1 = number, 2 = bool, 3 = bvar, 4 = sub table)
.json - TODO, generate a json table from all items in the table and all sub tables'
.ini - ?
Updated by Per Amundsen almost 2 years ago · 53 revisions