添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
);width:100%;background:var(--color-global-announcement-container);}
global announcement important icon
IMPORTANT: Don't miss our expanded TechEd conference, October 23-24, 2024 in Las Vegas. Gain more in-depth technical knowledge, and take a deeper dive into the nuts and bolts of AI, automation, and the UiPath platform. Register now .
global announcement close icon
Sign up
活动
latest
false
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
工作流活动
Last updated 2024年8月14日

遍历循环

UiPath.Core.Activities.ForEach

描述

对集合的每个元素执行“正文”部分中指定一个或一系列活动。可以使用迭代器变量 item 在“正文”部分的活动中引用元素。
在“变量”面板中,使用以下值创建一个名为 List 的新 IEnumerable 变量:
{"one", "two", "three"}{"one", "two", "three"}
  • 在“遍历循环”活动的“值”属性中插入 List 变量。
  • 将“消息框”活动拖动至“遍历循环”活动的“正文”部分。
  • item 迭代器变量插入“消息框”活动的“文本”属性字段。
  • 运行文件。“遍历循环”活动遍历 List 变量中指定的每个值,并将其显示在单独的消息框中。
  •