added link to impulses |
m fix type |
||
Line 4: | Line 4: | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
{"Name": "*", "Type": " | {"Name": "*", "Type": "Call"}, | ||
{"Name": "Condition", "Type": "bool"} | {"Name": "Condition", "Type": "bool"} | ||
] | ] | ||
Line 37: | Line 37: | ||
== Examples == | == Examples == | ||
<gallery widths=480px heights=480px> | |||
File:Protoflux_example_if_node.webp|an if node being used to filter the flow of an impulse chain. | |||
</gallery> | |||
[[Category:ProtoFlux:Flow]] | [[Category:ProtoFlux:Flow]] |
Revision as of 20:20, 9 February 2024
If
Flow
An If checks and evaluates the Condition (bool) only when * (Call) is called. After the call and evaluation, it will send a pulse out of OnTrue (Continuation) if Condition (bool) is true
or OnFalse (Continuation) if it is false
.
Inputs
* (Call)
Triggers this node to check Condition (bool) and send an impulse down OnTrue (Continuation) or OnFalse (Continuation) respectively.
Condition (bool)
A boolean to check only when * (Call) is impulsed.
Outputs
OnTrue (Continuation)
Sends an impulse when * (Call) is impulsed and Condition (bool) is true.
OnFalse (Continuation)
Sends an impulse when * (Call) is impulsed and Condition (bool) is false.
Examples
-
an if node being used to filter the flow of an impulse chain.