7.6 Loop filter循環フィルタ-Loops循環

1375 ワード

Filters a loop to a subset of its values using a loop of booleans. ブール値のセットを使用して、その値のサブセットにループをフィルタします.
Example A: Filter to a subset of a loop. 例A:ループのサブセットにフィルタリングする.
  • Input入力ポートが3つの値を受け取ると仮定する:
  • Input
    0
    apple
    1
    carrot
    2
    orange
  • Includeプロパティ:
  • Include
    0

    1
    2
  • 出力ポート.

  • Output
    0
    apple
    1
    orange
    Example B: Repeat filtered values by using a loop of indices. 例B:複数の値を選択して並べ替えます.
  • Input入力ポートが3つの値を受け取ると仮定する:
  • Input
    0
    apple
    1
    carrot
    2
    orange
  • 仮定
  • Include
    0
    0
    1
    3
    2
    0
  • そのOutput出力の順序は以下の通りである:
  • Output
    0
    carrot
    1
    carrot
    2
    carrot
    3
    orange
    Right-click the patch to change the expected type of the Input loop. モジュールタイプを右クリックして変更します.Use Loop Builder to make a boolean or number loop.
    Input A loop of values. ループ値にアクセスします.一般的なインタラクティブモジュールはここに接続され、Loopとともに使用されます.
    Include A loop of booleans (or indices) that decides which values in the Input loop to filter.
    Output A loop of booleans (or indices) that decides which values in the Input loop to filter.
    関連モジュールLoop Loop Builder [ Loop Select ](
    関連事例
    12.Facebook Notificationsは、一連の完全なループ通知を作成します.