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§
§§§§§
readonly loose Type Validation?: boolean§
readonly mode?: "rules" | "expression"How data should be routed Default: "rules"
readonly number Outputs?: numberHow many outputs to create Default: 4
readonly options?: { ... }Default: {}
readonly output?: numberThe 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: "={{}}"
readonly rules?: { ... }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"or0will be cast tofalse