Best practice for using Switch Activity with multiple boolean values

Hi.

Each of your Booleans are a different expression.
You have 2 choices I think. You can migrate your logic to a Flow chart and use Decisions instead of nested If activities (this can still be messy sometimes), OR place all your booleans into an expression that returns a number or string.

Nested Decisions that all use the same steps if TRUE would look like this:


And you can have extra steps for each decision in the True

A Switch in a Flowchart would look like this:

A Switch in a Sequence would look like this:

Eh, probably last option using Switch might be cleanest, if all you are doing is Logging some different information.

Regards.

5 Likes