If

<< Click to Display Table of Contents >>

Navigation:  Workflow Designer > Activities >

If

Previous pageReturn to chapter overviewNext page

Function

The If activity directs the workflow into one flowchart or the other, depending on whether a check results in true or false.

 

if-Activitiy_01

 

Input

The check takes place in the “Input” section in the “Condition” field.

 

Beispiel mit JavaScript

If-Condition JavaScript

 

In the example shown in the image, JavaScript Condition line 4 demonstrates that a Boolean comparison is returned as the output value. So if strErstellt = 0, the return value is true, otherwise it is false.

If the check results in true, the workflow branches into the “Then” section (image: If Activity); otherwise, it branches into the “Else” section.

 

Output

The result of the check can optionally be stored in a variable in the “Output” section in the “Result” field.

if-Output