在Yahoo!管道如何从使用每个项目的值构建的循环中返回单个值? [英] In Yahoo! Pipes how can I return a single value from a loop that's built with values from every item?
问题描述
例如,我有一个项目列表,每个项目都有一个名称.我想构建一个包含所有名称的逗号分隔列表的单个字符串.在大多数编程语言中,我将遍历所有项并追加到列表/数组之外的值.但是,我不知道雅虎的任何组合!管道模块来做到这一点.也许我缺少明显的东西,但我也没有从Google找到任何相关信息.
For example, I have a list of items and each item has a name. I want to build a single string that contains a comma-separated list of all the names. In most programming languages, I would loop over the items and append to a value outside the list/array. But, I can't figure out any combination of Yahoo! Pipes modules to do it. Maybe I'm missing something obvious, but I also find nothing relevant from Google.
如何在循环外将循环项值附加到单个值?
How do I append loop item values to a single value outside the loop?
或者如何从使用每个项目的值构建的循环中返回单个值?
Or how can I return a single value from a loop that's built with values from every item?
或者两者都不是,在Pipes中完成此操作的正确方法是什么?
Or what is the correct method to accomplish this in Pipes if it's neither of those?
推荐答案
基于Yahoo!的帮助,我想出了最好的方法.组,是使用项目生成器(item.string =默认值)->循环(将所有内容分配给item.string).在Loop中使用另一个管道来提供要连接的值也很有帮助.
The best method I've come up with based on help from the Yahoo! group, is to use an Item Builder (item.string = default) --> Loop ( assign all to item.string ). Using another pipe inside the Loop to provide the values to concatenate was also very helpful.
这篇关于在Yahoo!管道如何从使用每个项目的值构建的循环中返回单个值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!