activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

工作流活动

上次更新日期 2026年2月19日

IF条件

System.Activities.Statements.If

Enables your project to take one of two different courses of action, depending on whether a specified condition is met. This activity contains a Condition, a Then branch, and an optional Else branch. The Condition field must contain a Boolean expression according to which either the Then or the Else branch is executed. The Then branch comprises the activities to be performed if the condition is true. The optional Else branch comprises the activities to be performed if the condition is false. To display the Else branch, click Show Else in the body of the activity.

对于更复杂的场景,您可以使用“Else If”活动。

要了解如何使用此活动,请参阅:

项目兼容性

Windows |旧版 | Windows - Legacy(旧版)| Windows - Legacy(旧版跨平台

Windows 和跨平台配置

  • “条件” - 用于评估要执行的活动的条件。
  • “Then ” - 条件为 true 时要执行的活动。使用加号图标添加活动,或将其拖放到此处。
  • “Else” - 条件不为“False”时要执行的活动,使用加号图标添加,或将其拖放到此处。

Windows - 旧版配置

来自活动主体
  • “条件” - 用于评估要执行的活动的条件。
  • “Then ” - 条件为 true 时要执行的活动。使用加号图标添加活动,或将其拖放到此处。
  • “Else” - 条件不为“False”时要执行的活动,使用加号图标添加,或将其拖放到此处。
通过属性面板

常见

  • DisplayName - The name displayed for the activity in the Designer panel.

其他

  • “条件” - 用于评估要执行的活动的条件。
  • Private - If selected, the data used in the activity is not logged.

此活动由 Microsoft 构建。有关更多信息,请参阅Microsoft 官方文档

  • 项目兼容性
  • Windows 和跨平台配置
  • Windows - 旧版配置

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2026 UiPath。保留所有权利。