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 fallback Output?: 0 | 1 | -1 | 3 | 2
readonly fallback Output?: 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 output?: number
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;
}[];
}
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}
The type of data to route on Default: "number"