Skip to content

Branch

Name - Description Default Type
<input> Any
<output> Any
Wires The wires to schedule and run on this branch. None Wire[Wire]
FailureBehavior The behavior to take when some of the wires running on this branch mesh fail. BranchFailure.Everything BranchFailure
CaptureAll If all of the existing context variables should be captured, no matter if being used or not. false Bool
Mesh Optional external mesh to use for this branch. If not provided, a new one will be created. Mesh Mesh

A branch is a child mesh that runs and is ticked when this shard is activated, wires on this mesh will inherit all of the available exposed variables in the activator wire.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
(defwire c1
  .msg1 (Log))

(defwire c2
  .msg2 (Log))

(defwire branch
  "Hello" = .msg1
  "World" = .msg2
  (Branch [c1 c2]))

(Do branch)
[info] [c1] Hello
[info] [c2] World