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