Select one or more values from a loop.
從循環選擇一個或多個值。
Example A: Select one value.
例A:選擇一個值。
- 假設 Input 輸入口收到三個值:
Input | |
---|---|
0 | apple |
1 | carrot |
2 | orange |
- Index Loop 屬性輸入值 2 :
Index Loop | |
---|---|
0 | 2 |
- 輸出口輸出的值就是 Input 第三列,值 2 - Orange。
Output | |
---|---|
0 | orange |
Example B: Select and reorder multiple values.
例B:選擇并重新排序多個值。
- 假設 Input 輸入口收到三個值:
Input | |
---|---|
0 | apple |
1 | carrot |
2 | orange |
- 假設 Index Loop 的值如下所示:
這里不懂 ,Index Loop 明明只能輸入一個值,這里為何有三個
Index Loop | |
---|---|
0 | 2 |
1 | 1 |
2 | 0 |
- 那 Output 輸出的順序如下:
Output | |
---|---|
0 | orange |
1 | carrot |
2 | apple |
Right-click the patch to change the expected type of the Input loop.
右鍵更改模塊類型。
輸入口
Input
A loop of values.
接入一個循環值。一般交互模塊連接到這里,和Loop 一起使用。
Index Loop 循環索引
An index of the value to select. By default, the index is 0.
從循環索引中選擇一個值。默認索引值是 0 。
Select multiple values using a loop of indices.
使用 Loop of indices 選擇多個值。
輸出口
Output
A value (or loop of values) from the loop at the selected index (or indices).
來自所選索引的循環的值(或值循環)。
相關模塊
Loop
Loop Builder
[Loop Filter
](
相關案例
12. Facebook Notifications
創建一系列完整的循環通知。