Skip to Content

Wevo iPaaS tools: If/Else

The If/Else tool allows you to run specific actions depending on the results of a certain data validation. You can determine the different paths your flow will take in each case. If there is a large number of different paths your flow may need to follow based on the results, the Switch tool may be more suitable.

Use the If/Else tool

From the Tools menu, drag the If/Else tool to the flow's grid.

if else 1

In the scope of the If section, insert the process that should be executed if the data validation returns True. Next, in the scope of the Else section, define what to do if the data validation returns False.

if else 2

Validation code

Click on the tool on the grid to access the configurations. Note that the Configurations tab shows a code block where you can define the conditional validation that will govern the If/Else tool. Write in the JavaScript language.

if else 3

Map inputs

Click the Input tab in the configurations of the tool and map the outputs of the preceding action according to what you need.

if else 4

Note

You will need to map the inputs for all the actions you've included in both the scopes, the If and the Else.