ProtoFlux:If: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page If (ProtoFlux) to ProtoFlux:If: Creating protoflux Namespace
expanded If ProtoFlux node page
Line 9: Line 9:
|Outputs=
|Outputs=
[
[
{"Name": "OnTrue", "Type":"Impulse"},
{"Name": "OnTrue", "Type":"Continuation"},
{"Name": "OnFalse", "Type":"Impulse"}
{"Name": "OnFalse", "Type":"Continuation"}
]
]
|}}
|}}
An If checks and evaluates the Condition ([[Type:Bool|bool]]) only when * (Call) is called. After the call and evaluation, it will send a pulse out of OnTrue (Continuation) if Condition ([[Type:Bool|bool]]) is <code>true</code> or OnFalse (Continuation) if it is <code>false</code>.
== Inputs ==
=== * (Call) ===
Triggers this node to check Condition ([[Type:Bool|bool]]) and send an impulse down OnTrue (Continuation) or OnFalse (Continuation) respectively.
=== Condition ([[Type:Bool|bool]]) ===
A boolean to check only when * (Call) is impulsed.
== Outputs ==
=== OnTrue (Continuation) ===
Sends an impulse when * (Call) is impulsed and Condition ([[Type:Bool|bool]]) is true.
=== OnFalse (Continuation) ===
Sends an impulse when * (Call) is impulsed and Condition ([[Type:Bool|bool]]) is false.
== Examples ==
{{Stub}}


[[Category:ProtoFlux:Flow]]
[[Category:ProtoFlux:Flow]]

Revision as of 22:00, 3 February 2024

If
*
OnTrue
Condition
OnFalse
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

This article or section is a Stub. You can help the Resonite Wiki by expanding it.