Search K
Appearance
Appearance
The Switch node compares an input value against a list of switch values and returns a matching result if found. This node is useful for branching logic based on predefined input options within your automation workflows.
Use this node to implement conditional routing or branching logic in workflows by comparing a user input against a list of possible values.
Input | Type | Description |
---|---|---|
Switch Input | Text | The input value to be evaluated against the list of switch values. |
Switch Values | JSON Array | A JSON array of values to compare with the input. Example: ["Option1", "Option2", "Option3"] |
This node sets the statusReturn
property to the matching switch value if found, or "default"
if no match is found.
Output Variable Name | Description |
---|---|
statusReturn | The matching switch value from the list if found; otherwise returns "default" . |
Validation:
Switch Logic Execution:
_fm.PropReplacePlaceholders
to replace any placeholders in each switch value with data from the workflow context.statusReturn
to the matched value and exits.Default Handling:
statusReturn
to "default"
.Error Handling:
⚠️ Important:
The Switch Values input must be a valid JSON array. Example:
["Yes", "No", "Maybe"]