Project

General

Profile

Testasd » History » Version 54

Per Amundsen, 02/07/2023 02:46 PM

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