Use the Decision element within a task action to make the process branch, depending on whether or not a condition is true. If the condition is true, the process goes in the Yes direction. If the condition is false, the process goes in the No direction.

Typical examples of conditions are:

  • A boolean variable has a true value.
  • An integer variable is equal to 10.
  • The current date is after a deadline date.

Random functions

You can use a random function that returns a random decimal between 0.0 and 1.0. Use this building block in decision actions to steer interaction based on whether the expression evaluates to true or false. For example, Random() < 0.25 can send 25% of interactions down one path and 75% of interactions down another path. Consider, however, that a random number generator means that this outcome is not guaranteed. Averaged out over enough examples, the figure is around 25%.

You can also use a random function to retrieve an integer within a given range. This function enables you to more easily use the function in cases where an integer is required. For example, RandomInt(100) returns a random integer between 0 and 100. Negative inputs return negative integers.

Name Description
Decision  Type a descriptive name for the decision action.
Expression Set a value to determine which path the action should take.