Switch

Metreos.Native.Conditional.Switch

Summary

Switch creates a dynamically determined branch condition to indicate the value of a specified expression.

Usage

Switch will call System.Object.ToString() on the object passed in via SwitchOn, and branch on that evaluated string.

A common use case for Switch is to branch on a value that is a discrete set of values. In this scenario, the developer building the script can create a branch per known value. If the value is an open-ended set of values, then Switch most likely is not appropriate, since branch conditions must be explicitly declared when building scripts.

Remarks

null should never be passed into SwitchOn.

Action Parameters
Parameter Name.NET TypeDefaultDescription
SwitchOn *System.ObjectThe value to invoke System.Object.ToString() on. Do not pass null into this parameter.

No Result Data

No Defined Branch Conditions