Control Flow Activities: If

Control Flow Activities: If

If


The 'If' Activity allows you to check the data is valid, invalid, less than, more than, etc. using the conditions. If the Property matched the conditions then it will execute the THEN button activities else it will execute the ELSE button activities.

 

TIP

Use this activity to check for interaction data from your IVR.



 

After adding the 'If' activity, Configure the activity details

Default Configuration Parameters

Field

Description

Property

Data to be checked

Enter value

The value to be checked with the Property data.

Condition

Condition to be performed on the Property.
Conditions include:

  • Equals
  • Not Equals
  • Is not Empty
  • Is Empty
  • Less Than
  • Less or Equal
  • Greater Than
  • Greater Than or Equal
  • Like
  • Not Like
  • In
  • Not In
  • Contains
  • Not Contains

Sample If Activity

A Simple Example to configure the 'If' activity in PopFlow Studio.

In this example, we are fetching the value from HTTPS activity. Assuming that the results return a collection, we are iterating it in ForEach activity. To configure these activities you can refer the documents for 'HTTPS' and 'ForEach' activity.
Once the configuration is completed for 'Https' and 'ForEach' activity. Add the 'If' activity as shown below.

  1. Click on the 'If' activity to open and configure it.
  2. Enter the value inside the 'Property' and 'Enter Value' fields.
  3. In the below picture we are checking the 'id' of 'https' activity data if the id matched then we show the notification.

Value is a reserved variable when it is used in a loop like for each for every row. In this case value has the row and id is the column.

 

TIP

All properties are referenced in lowercase. ie {value.id}

 



Adding Additional Conditions

With Additional Conditions you can select 'AND' or 'OR' option.

  • AND: If you select 'AND' then all the selected conditions must be true to execute the 'THEN' button activity otherwise it will execute the 'ELSE' button.
  • OR: If you select 'OR' then any of the condition is true it will execute the 'THEN' button activity.
    You can check multiple conditions for the same 'property' or for different 'properties' in a single 'If' activity.


    Still can’t find an answer?
      • Related Articles

      • Control Flow Activities: Stop Workflow

        Stop Workflow control flow The ‘Stop Workflow’ Activity allows you to stop the execution of the current executing workflow. After opening the 'Stop Workflow' activity, you will see the configuration panel as shown below. You don't need to configure ...
      • Control Flow Activities: Phone Number Parsing

        Phone Number Parsing control flow The ‘Phone Number Parsing' Activity provides the ability to format any phone number according to the selected ‘Phone format’ type and 'Country region code’ (optional). After opening the 'Phone Number Parsing' ...
      • Control Flow Activities:Switch

        Switch Statement The 'Switch' Activity is used to identify unique branches of the selected data source. This allows for a single data source to have unique chains of Activities for every different type of values. For example, a single data source ...
      • Common Control Flow Uses

        5. Control Flows Activities The activities listed under Control Flows are commonly used in PopFlow. These activities allow you to create more complex and conditional workflows. These control flows enable the automation to make decisions and take ...
      • Control Flow Activities: Next Workflow

        The ‘Next Workflow' Activity allows you to run a workflow within another workflow. It has only one child path ‘ON WORKFLOW COMPLETE’. This path becomes available after enabling “Should return to this workflow”. NOTE To use the Next Workflow activity, ...