String Multi-Switch [RvTools]:
The String Multi-Switch [RvTools] node is designed to streamline the process of selecting and returning a single string from multiple input options. This node is particularly useful when you have several potential string inputs and need to dynamically choose one based on availability. Its primary function is to evaluate up to five optional string inputs and return the first non-null input it encounters. This capability is beneficial in scenarios where you want to prioritize certain string inputs over others without manually checking each one. By automating this selection process, the node enhances workflow efficiency and reduces the complexity of managing multiple string inputs.
String Multi-Switch [RvTools] Input Parameters:
input1
This parameter represents the first optional string input. It is the highest priority input, meaning if it is provided and not null, it will be the one returned by the node. There are no minimum, maximum, or default values as it is an optional input.
input2
This parameter is the second optional string input. It is considered only if input1 is null. Like input1, it does not have minimum, maximum, or default values, and its presence is optional.
input3
This parameter serves as the third optional string input. It is evaluated if both input1 and input2 are null. It is optional and does not have predefined constraints.
input4
This parameter is the fourth optional string input. It is used if input1, input2, and input3 are all null. It remains optional with no specific constraints.
input5
This parameter is the fifth and final optional string input. It is considered only if all previous inputs (input1 to input4) are null. It is optional and lacks predefined constraints.
String Multi-Switch [RvTools] Output Parameters:
string
The output parameter string is the selected string from the provided inputs. It represents the first non-null string input encountered by the node. If all inputs are null, the output will be None. This output is crucial for determining which input string is active and should be used in subsequent processes.
String Multi-Switch [RvTools] Usage Tips:
- Ensure that the most critical string input is assigned to
input1to take advantage of the node's priority-based selection. - Use this node to simplify workflows where multiple string inputs are possible, but only one should be active at a time.
- Consider using this node in conjunction with other nodes that generate or modify strings to dynamically manage string data flow.
String Multi-Switch [RvTools] Common Errors and Solutions:
Missing Input: Multi String Switch has no active Input
- Explanation: This error occurs when all input parameters (
input1toinput5) are null, resulting in no active string to return. - Solution: Ensure that at least one of the input parameters is provided with a valid string value to avoid this error.
