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§
§§§§§§
readonly data Type?: "string" | "number" | "boolean" | "dateTime"§
readonly fallback Output?: stringThe 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"}
readonly mode?: "rules" | "expression"How data should be routed Default: "rules"
readonly output?: stringThe index of output to which to send data to
readonly outputs Amount?: numberAmount of outputs to create Default: 4
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}
readonly value 1?: string | number | booleanThe value to compare with the first one
The type of data to route on Default: "number"