Project

General

Profile

Testasd » History » Version 51

Per Amundsen, 02/07/2023 09:44 AM

1 45 Per Amundsen
h1. Multidimensional arrays
2
3
*/marray -a <name> <type> <key> <value>*
4
5
add item
6
7
*/marray -e <name> <N> <type> <key> <value>*
8
9
edit item
10
11
*/marray -d <name> <N>*
12
13
delete item
14
15
*/marray -f <name>*
16
17
delete/free table
18
19 46 Per Amundsen
*$marray(name, N, [N..])*
20 45 Per Amundsen
21 50 Per Amundsen
gets the Nth item in a table, subsequent N parameters gets the Nth item from a sub table, infinite sub depth.
22 45 Per Amundsen
23
*Switches*
24
25
.key - Get item key.
26
.value - Get item value.
27 49 Per Amundsen
.type - Get item type. (0 = text, 1 = number, 2 = bool, 3 = bvar, 4 = sub table)
28 51 Per Amundsen
.json - TODO, generate a json table from all items in the table and all sub tables'
29
.ini - ?