interface SwitchV3NodeParameters {
looseTypeValidation?: boolean;
mode?: "rules" | "expression";
numberOutputs?: number;
options?: {
allMatchingOutputs?: boolean;
fallbackOutput?: string;
ignoreCase?: boolean;
looseTypeValidation?: boolean;
renameFallbackOutput?: string;
};
output?: number;
rules?: {
values: {
conditions?: unknown;
outputKey?: string;
renameOutput?: boolean;
}[];
};
}
Properties§
Source§readonly options?: {
allMatchingOutputs?: boolean;
fallbackOutput?: string;
ignoreCase?: boolean;
looseTypeValidation?: boolean;
renameFallbackOutput?: string;
}
readonly options?: {
allMatchingOutputs?: boolean;
fallbackOutput?: string;
ignoreCase?: boolean;
looseTypeValidation?: boolean;
renameFallbackOutput?: string;
}
Default: {}
Source§readonly output?: number
readonly output?: number
The output index to send the input item to. Use an expression to calculate which input item should be routed to which output. The expression must return a number. Default: "={{}}"
Source§readonly rules?: {
values: {
conditions?: unknown;
outputKey?: string;
renameOutput?: boolean;
}[];
}
readonly rules?: {
values: {
conditions?: unknown;
outputKey?: string;
renameOutput?: boolean;
}[];
}
Default: {"values":[{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"leftValue":"","rightValue":"","operator":{"type":"string","operation":"equals"}}],"combinator":"and"}}]} Type options: {"multipleValues":true,"sortable":true}
If the type of an expression doesn't match the type of the comparison, n8n will try to cast the expression to the required type. E.g. for booleans
"false"
or0
will be cast tofalse