美文网首页
7.8 Loop Select 循环选项 - Loops 循环

7.8 Loop Select 循环选项 - Loops 循环

作者: 刘板栗 | 来源:发表于2017-03-27 13:05 被阅读75次

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

创建一系列完整的循环通知。


相关文章

网友评论

      本文标题:7.8 Loop Select 循环选项 - Loops 循环

      本文链接:https://www.haomeiwen.com/subject/thhfwttx.html