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§

Source§

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

Source§

readonly mode?: "rules" | "expression"

How data should be routed Default: "rules"

Source§

readonly numberOutputs?: number

How many outputs to create Default: 4

Source§

readonly options?: {
    allMatchingOutputs?: boolean;
    fallbackOutput?: string;
    ignoreCase?: boolean;
    looseTypeValidation?: boolean;
    renameFallbackOutput?: string;
}

Default: {}

Source§

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;
    }[];
}

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}