Skip to content

Stop

Name Mandatory Description Default Type
⬅️ Input Any input type is accepted. The input value will either pass through unchanged or be ignored. Any
Output ➡️ Depending on what is specified in the Passthrough parameter, this shard either outputs the input value, passed through unchanged or it outputs the output of the stopped Wire. Note that if it outputs the output of the stopped wire, it will be of Type::Any and thus should be checked or converted to the appropriate Type. Any
Wire No The Wire to stop. If none provided, the shard will stop the current Wire. none WireStringNoneVar(Wire)
Passthrough No If set to true, outputs the input value, passed through unchanged. true Bool

Either stops the execution of a specified Wire or the current Wire.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
@wire(loop {
  Math.Add(1) | Log
  When(
    {Is(5)}
    {Stop}
  )
  Restart
} Looped: true)

0 | Do(loop)

[info] [loop] 1
[info] [loop] 2
[info] [loop] 3
[info] [loop] 4
[info] [loop] 5