This activity controls the sequence of activities within a workflow based on a Boolean (True/False) condition. You can use the outcome of a previous activity, such as a script activity, for the condition.

The IfElse activity is a Visual Studio activity that uses rules and conditions. For more information about using rules and conditions in Windows Workflow Foundation (WF), see Tutorial: Use Rules and Conditions in WF in the Technical Library (http://go.microsoft.com/fwlink/?LinkId=186257).

Icon



Design Time Prerequisites

Run Time Prerequisites

Properties

The IfElse activity uses the input properties listed in the following table.

Display Name Internal Name Type Required Description

Errors and Exceptions

Remarks

For more information about the IfElse activity, see IfElseActivity Class in the .NET Framework 4 Class Library (http://go.microsoft.com/fwlink/?LinkId=164775).

Example