If

The If action An instruction within a botflow. adds an If Statement to botflows Automated steps that you can design for each bot that will run. executing or skipping a sequence of actions depending on a specific condition.

Use If statements to configure botflows to check:

Add an If action to a botflow using the:

Also review:

Add an If action to a botflow using the Project Pane

This example provides the steps necessary to add an If action to a botflow using the Project Pane.

To add an If action to a botflow:

  1. On the Actions list, click Flow and then click If from the Logic list.
  2. The If Action Builder window displays.
  3. Set the If settings.
    • More/Less view: Click the More/Less toggle to include or exclude multiple If statements.
    • If: Select the first half of the If group statement from the drop-down list.
    • Of these are: Select the second half of the If group statement from the drop-down list.
    • Plus Sign: Select to add a Condition or Group to the If statement.
    • Condition (number): Type a value to compare in the first box. Select the comparison from the drop-down list. Type a value in the second box to compare against the value in the first box.
    • If needed, click the Rules checkmark.

    • Include "Else": Check to include an Else clause in the If statement.

  4. If needed, adjust the Run Switch setting to create the action without running it.
  5. Optionally, add an action note.
  6. Click OK to add the If action to the botflow.

Add an If action to a botflow using the Target Tool

This example provides the steps necessary to add an If action to a botflow using the Target Selector.

To add an If action to a botflow:

  1. Drag the Target Selector from the Build Pane Area to add new actions and edit existing actions. The Build Pane displays after you select a targeted element in a Windows application. The center of the Build Pane is referred to as the Task Editor Pane. and drop it onto an application to display the Target Preview.
  2. Click If from the Logic list.
  3. The If Action Builder window displays.

  1. Set the If settings.
    • More/Less view: Click the More/Less toggle to include or exclude multiple If statements.
    • If: Select the first half of the If group statement from the drop-down list:
    • Of these are: Select the second half of the If group statement from the drop-down list:
    • Plus Sign: Select to add a Condition or Group to the If statement.
    • Condition (number): Type a value to compare in the first box. Select the comparison from the drop-down list. Type a value in the second box to compare against the value in the first box.
    • If needed, click the Rules checkmark.
    • Include "Else": Check to include an Else clause in the If statement.

  2. If needed, adjust the Rule settings to modify how Nintex Bot finds the application target.
  3. If needed, adjust the Timing settings to fine tune how the action runs.
  4. View the action Details settings.
  5. If needed, adjust the Run Switch setting to create the action without running it.
  1. Optionally, add an action note.
  2. Click OK to add the If action to the botflow.

If Action Builder field and button descriptions

Comparison option descriptions

If statement configuration descriptions