aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/doc/flow_classes/listelement-help.pd
blob: e30f98dad10f34c30709f6f5b2d276efb7470311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#N canvas 604 22 632 523 10;
#X floatatom 262 160 5 0 0 0 - - -;
#X floatatom 281 106 5 0 0 0 - - -;
#X obj 195 158 print;
#X msg 195 81 1 3 hello 8 13;
#X obj 195 129 listelement 0;
#X text 10 32 Outputs one element from a list as selected by an integer.
;
#X text 232 238 An integer acts as an index \, it selects the position
of an element in a list. The selected element is output \, for example:
integer "0" selects and outputs the first element in a list \, integer
"1" selects and outputs the second element in a list \, integers "-1"
selects and outputs the last element in a list.;
#X text 232 387 Changes the value of the argument i.e. changes the
index into the list to get a different element.;
#X obj 0 0 doc_h;
#X obj 3 335 doc_i 2;
#X obj 3 432 doc_o 1;
#X obj 14 365 doc_ii 0;
#X obj 14 387 doc_ii 1;
#X obj 14 462 doc_oo 0;
#X obj 3 208 doc_c 1;
#X obj 14 238 doc_cc 0;
#X obj 97 238 doc_m c0 float/int;
#X obj 97 365 doc_m i0 list;
#X obj 97 387 doc_m i1 float/int;
#X text 232 462 The element selected by the index is sent to the outlet
;
#X obj 0 494 doc_f;
#X text 232 365 a list of numbers or symbols.;
#X obj 97 462 doc_m o0 >any>;
#X connect 1 0 4 1;
#X connect 3 0 4 0;
#X connect 4 0 0 0;
#X connect 4 0 2 0;
#X connect 16 1 6 0;
#X connect 17 1 21 0;
#X connect 18 1 7 0;
#X connect 22 1 19 0;