{ "name": "switch", "about": { "trial": false, "author": { "name": "EMQ", "email": "contact@emqx.io", "company": "EMQ Technologies Co., Ltd", "website": "https://www.emqx.io" }, "helpUrl": { "en_US": "https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/sqls/query_language_elements.md", "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/sqls/query_language_elements.md" }, "description": { "en_US": "An operation to route events to different branches based on a case condition similar to switch statement in programming languages.", "zh_CN": "用于根据条件分流数据的操作,类似编程语言中的 switch 语句。" } }, "properties": [ { "name": "cases", "optional": false, "control": "list", "type": "string", "hint": { "en_US": "case condition expression", "zh_CN": "分流条件语句" }, "label": { "en_US": "Cases", "zh_CN": "条件" } },{ "name": "stopAtFirstMatch", "default": false, "optional": false, "control": "checkbox", "type": "boolean", "hint": { "en_US": "Stop at first match", "zh_CN": "接受第一条匹配信息后停止" }, "label": { "en_US": "Stop at first match", "zh_CN": "接受第一条匹配信息后停止" } } ], "node": { "display": true, "category": "operator", "input": { "type": "any", "rowType": "any", "collectionType": "any" }, "output": { "type": "same", "strategy": "keep" }, "icon": "iconPath", "label": { "en": "Switch", "zh": "Switch" } } }