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§
§§§§§
readonly data Type?: "string" | "number" | "boolean" | "dateTime"§
readonly fallback Output?: 0 | 1 | -1 | 3 | 2The output to which to route all items which do not match any of the rules Default: -1
readonly mode?: "rules" | "expression"How data should be routed Default: "rules"
readonly output?: numberThe index of output to which to send data to Type options: {"minValue":0,"maxValue":3}
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}
readonly value 1?: string | number | booleanThe value to compare with the first one
The type of data to route on Default: "number"