Versions Compared

Key

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

...

  • The If Instruction is used for conditional processing in a workflow. It allows return codes and return values of previous jobs to be checked and it can be used to evaluate order variables.
  • The If Instruction optionally allows the use of an Else branch if the condition evaluates to false.
  • An If Instruction evaluates an expression that includes order variables and that results in a true/false value. Some basic use cases are:
    • check the return code (exit code) of a previous job to decide which jobs or instructions to continue with,
    • check the return value (variables returned by a previous job) to decide about further processing,
    • check order variables to determine the next instructions to process.
  • The If Instruction does not modify an order's state, however, if an If Instruction fails due to an error in the expression or syntax then the order is considered to have failed.

Feature Video

This video explains how to create conditional processing in a workflow.

...