首页 > 解决方案 > 允许用户指定条件流(if/else 类型) - node.js

问题描述

我们正在构建一个系统,我们希望让用户指定条件来决定执行。比如为用户构建 IFTTT。

例如:

If conditionA and conditionB then
    If condition C then
         Execute A
    Else if condition D then
         Execute B

这个想法是为用户提供条件逻辑。比如让用户控制节点脚本并选择控制流。想知道是否有更简单的方法可以使用规则构建 JSON 并评估它们。

标签: node.jsifttt

解决方案


推荐阅读