Integrate Software AG Products Using Digital Event Services 10.4 | Integrate Software AG Products Using Digital Event Services | MashZone NextGen Help | Appendix | Legacy Presto components | Mashables and Mashups | Mashups in MashZone NextGen Wires | Creating Mashups in Wires | Add If/Else Conditions
 
Add If/Else Conditions
One very common requirement for mashups, is to define different processing steps based on conditions, commonly known as if/else conditions. In most programming languages, the structure for if/else conditions looks something like this:
//one condition to check, if true, do steps in subordinate branch
If A = B
//subordinate branch
{do A
do B
do C}
//if no conditions are met, do steps in subordinate branch
Else
//subordinate branch
{do B
do D}
Wires does not have action blocks that represent If or Else. Instead, you define if/else behavior in a mashup in Wires using execute conditions in the advanced properties for blocks. See If/Else Examples for examples.
You define the condition to be met on the first block in each conditional branch, as an execution condition. See Set Execution Conditions for the basic steps to define an execution condition on a block. Conceptually, the logic would look more like this:
//conditional branch
{do A and all steps in this branch if L = M
do B
do C}
//conditional branch
{do D and all steps in this branch if L != M
do E}
You should also be aware of Add If/Else Conditions.

Copyright © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release