Project

General

Profile

Testasd » History » Version 47

Per Amundsen, 02/07/2023 09:19 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 47 Per Amundsen
get the Nth item in a table, subsequent N parameters gets the Nth item from a sub array, infinite sub depth.
22 45 Per Amundsen
23
*Switches*
24
25
.key - Get item key.
26
.value - Get item value.
27
.type - Get item type. (0 = text, 1 = number, 2 = bool, 3 = bvar, 4 = sub marray)