node.js - 允许用户指定条件流(if/else 类型) - node.js
问题描述
我们正在构建一个系统,我们希望让用户指定条件来决定执行。比如为用户构建 IFTTT。
例如:
If conditionA and conditionB then
If condition C then
Execute A
Else if condition D then
Execute B
这个想法是为用户提供条件逻辑。比如让用户控制节点脚本并选择控制流。想知道是否有更简单的方法可以使用规则构建 JSON 并评估它们。
解决方案
推荐阅读
- c++ - 获取临时文件字符串并添加自定义文件夹
- android - 如何获取androidleaback组件中特定项目的ViewHolder?
- python - 基于 Pandas 滚动窗口的条件检查
- gitlab-ci - Gitlab Tee:折叠的多行命令和无法识别的选项:追加
- c# - 在 C# 的多线程编程中读取局部变量是否安全?
- django - 如何将 Django 应用程序连接到 Docker 内的 Postgresql?
- spring - 如何在spring security中跟踪有关jwt的所有登录日志
- angular - 为什么我不能导入 ng-zorro-antd 模块的一部分
- docker - Sonar Scanner 无法在 SonarQube 8.9 (Docker) 上运行扫描
- python - 来自网络 URL 的 Pandas read_csv