Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

OVERVIEW:

  • 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.

      Image Added

  • After opening the 'If' activity, you will get the below configuration panel.

      Image Added

Default Configuration Parameters:

  • Property: Data to be checked.
  • Enter Value: The value to be checked with the Property data.
  • (...)Condition: Condition to be performed on Property.


HOW IT WORKS:

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

  • To configure an 'If' activity you need a property(value).
  • Once you get the value you can use the condition in the 'If' Activity.

Conditions:

Image Added

  • You can select any condition according to the requirements.
  • In this example, we are fetching the value from HTTPS activity and 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.

        Image Added

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

       Image Added


Additional Conditions:

  • To add the 'additional conditions' click on the 'Additional Conditions' button. After clicking on button it will add a panel as shown below.

          Image Added

  • You will get an option where 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.

       Image Added 

  • After filling the values in the given fields you can close and save the activity by clicking outside of the activity panel.
  • You will notice two child buttons under the 'If' Activity. 

      Image Added


  • 'THEN' button will execute if the condition is TRUE.
  • 'ELSE' button will execute if the condition is FALSE.