Interface SwitchV3NodeParameters

Source
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 looseTypeValidation?: boolean

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" or 0 will be cast to false

§readonly mode?: "rules" | "expression"

How data should be routed Default: "rules"

§readonly numberOutputs?: number

How many outputs to create Default: 4

§readonly options?: { ... }

Default: {}

§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: "={{}}"

§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}