Interface SwitchV2NodeParameters

Source
interface SwitchV2NodeParameters {
    dataType?:
        | "string"
        | "number"
        | "boolean"
        | "dateTime";
    fallbackOutput?: string;
    mode?: "rules"
    | "expression";
    output?: string;
    outputsAmount?: number;
    rules?:
        | {
            rules: {
                operation?: "equal"
                | "notEqual";
                outputKey?: string;
                value2?: boolean;
            }[];
        }
        | {
            rules: {
                operation?: "after"
                | "before";
                outputKey?: string;
                value2?: string;
            }[];
        }
        | {
            rules: {
                operation?: | "equal"
                | "notEqual"
                | "smaller"
                | "smallerEqual"
                | "larger"
                | "largerEqual";
                outputKey?: string;
                value2?: number;
            }[];
        }
        | {
            rules: {
                operation?: | "contains"
                | "equal"
                | "notEqual"
                | "notContains"
                | "endsWith"
                | "notEndsWith"
                | "regex"
                | "notRegex"
                | "startsWith"
                | "notStartsWith";
                outputKey?: string;
                value2?: string;
            }[];
        };
    value1?: string
    | number
    | boolean;
}

Properties§

Source§

readonly dataType?: "string" | "number" | "boolean" | "dateTime"

The type of data to route on Default: "number"

Source§

readonly fallbackOutput?: string

The output to which to route all items which do not match any of the rules. Choose from the list, or specify an ID using an expression. Default: -1 Type options: {"loadOptionsDependsOn":["rules.rules"],"loadOptionsMethod":"getFallbackOutputOptions"}

Source§

readonly mode?: "rules" | "expression"

How data should be routed Default: "rules"

Source§

readonly output?: string

The index of output to which to send data to

Source§

readonly outputsAmount?: number

Amount of outputs to create Default: 4

Source§

readonly rules?:
    | {
        rules: {
            operation?: "equal"
            | "notEqual";
            outputKey?: string;
            value2?: boolean;
        }[];
    }
    | {
        rules: {
            operation?: "after"
            | "before";
            outputKey?: string;
            value2?: string;
        }[];
    }
    | {
        rules: {
            operation?: | "equal"
            | "notEqual"
            | "smaller"
            | "smallerEqual"
            | "larger"
            | "largerEqual";
            outputKey?: string;
            value2?: number;
        }[];
    }
    | {
        rules: {
            operation?: | "contains"
            | "equal"
            | "notEqual"
            | "notContains"
            | "endsWith"
            | "notEndsWith"
            | "regex"
            | "notRegex"
            | "startsWith"
            | "notStartsWith";
            outputKey?: string;
            value2?: string;
        }[];
    }

Default: {} Type options: {"multipleValues":true,"sortable":true}

Source§

readonly value1?: string | number | boolean

The value to compare with the first one