Skip to content

节点目录:nodes-logic ​

共 8 个节点。以下内容由 scripts/gen-node-catalog.mjs 从 packages/nodes-logic/src/install.ts 提取。

槽位类型中的 number、string、boolean 等为普通数据端口,event 为事件端口;控件是绘制在节点上的交互组件,属性会随图一起序列化。

logic/and — AND ​

Return true if all inputs are true

  • 输入:a: boolean、b: boolean
  • 输出:out: boolean
  • 源码:LogicAnd.ts

logic/branch — Branch ​

Branch execution on condition

  • 输入:onTrigger: action、condition: boolean
  • 输出:true: event、false: event
  • 源码:LogicBranch.ts

logic/compare — Compare ​

Compare for logical equality

  • 输入:a: boolean、b: boolean
  • 输出:out: boolean
  • 源码:LogicCompare.ts

logic/not — NOT ​

Return the logical negation

  • 输入:in: boolean
  • 输出:out: boolean
  • 源码:LogicNot.ts

logic/or — OR ​

Return true if at least one input is true

  • 输入:a: boolean、b: boolean
  • 输出:out: boolean
  • 源码:LogicOr.ts

logic/selector — Selector ​

selects an output

  • 输入:sel: number、A: any、B: any、C: any、D: any
  • 输出:out: any
  • 源码:Selector.ts

logic/sequence — Sequence ​

select one element from a sequence from a string

  • 输入:index: number、seq: *
  • 输出:out: *
  • 源码:Sequence.ts

logic/truthy — ~= TRUE ​

Returns true if input is truthy

Released under the MIT License.