Interface SwitchV1NodeParameters

Source
interface SwitchV1NodeParameters {
    dataType?:
        | "string"
        | "number"
        | "boolean"
        | "dateTime";
    fallbackOutput?: 0
    | 1
    | -1
    | 3
    | 2;
    mode?: "rules" | "expression";
    output?: number;
    rules?:
        | {
            rules: {
                operation?: "equal"
                | "notEqual";
                output?: number;
                value2?: boolean;
            }[];
        }
        | {
            rules: {
                operation?: "after"
                | "before";
                output?: number;
                value2?: string;
            }[];
        }
        | {
            rules: {
                operation?: | "equal"
                | "notEqual"
                | "smaller"
                | "smallerEqual"
                | "larger"
                | "largerEqual";
                output?: number;
                value2?: number;
            }[];
        }
        | {
            rules: {
                operation?: | "contains"
                | "equal"
                | "notEqual"
                | "notContains"
                | "endsWith"
                | "notEndsWith"
                | "regex"
                | "notRegex"
                | "startsWith"
                | "notStartsWith";
                output?: number;
                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?: 0 | 1 | -1 | 3 | 2

The output to which to route all items which do not match any of the rules Default: -1

Source§

readonly mode?: "rules" | "expression"

How data should be routed Default: "rules"

Source§

readonly output?: number

The index of output to which to send data to Type options: {"minValue":0,"maxValue":3}

Source§

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

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

Source§

readonly value1?: string | number | boolean

The value to compare with the first one