Please enable JavaScript to view this site.

Codolex

A decision is the structural element to work with the logic of a flow. Think of a decision as an if-statement in Delphi.

13849965611933

Decision in flow

 

begin

 if (not (HasIniFile)) then

 begin

   HelpAndManualScreenshots.Activities.StringUtils.TStringUtils.StringParts();

 end

 else

   ...

end;

Resulting code

 

When you double-click a decision, you can set its properties. Then choose the variable on which the decision acts.

 

DescisionIniFile

Next, set the value of the variable for each outgoing sequence. In this example, the variable HasIniFile is a boolean, so there are two possibilities, indicated on the outgoing sequences. Double-click on a sequence to set the sequence value.

 

When the variable is left empty, it's possible to make use of an expression.

descisionExpression

The result of this expression must always be a boolean.

© by GDK Software