Difference between revisions of "If (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
m (Zyzyl moved page LogiX: If to If (LogiX node): Changing name to match standard form)
(Update page to new format)
Line 1: Line 1:
<noinclude>[[Category:LogiX|If]][[Category:LogiX: Flow|If]]</noinclude>
+
<languages></languages>
{|class=wikitable
+
<translate>
| Inputs
+
The '''If''' node fires impulses from one of two outputs dependent on the Condition when an impulse is received.
| style="width: 100px;" |
+
 
| Outputs
+
<!--[[File:|border|256px|right]]-->
 +
 
 +
== Inputs & Outputs ==
 +
{| class="wikitable"
 +
|+Inputs
 
|-
 
|-
| style="background-color:#ffffff" | Impuse: Trigger
+
| Color
|  
+
| Label
| style="background-color:#ffffff" | Impuse: On True
+
| Type
 
|-
 
|-
| style="background-color:#888888; color:white;" | Boolean: Condition
+
| style="background-color:{{Impulse-color}}" |
|  
+
| Run
| style="background-color:#ffffff" | Impuse: On False
+
| Impulse
 
|-
 
|-
 +
| style="background-color:{{Boolean-color}}" |
 +
| Condition
 +
| Boolean
 
|}
 
|}
==Description==
+
 
If can be used to redirect an Impulse depending on a Boolean Condition. When the Trigger impulse is fired if the connected Condition is True then "On True" will fire otherwise "On False" will fire.
+
{| class="wikitable"
<hr>{{:NodeMenu-Flow}}<hr>
+
|+Outputs
 +
|-
 +
| Color
 +
| Label
 +
| Type
 +
|-
 +
| style="background-color:{{Impulse-color}}" |
 +
| True
 +
| Impulse
 +
|-
 +
| style="background-color:{{Impulse-color}}" |
 +
| False
 +
| Impulse
 +
|}
 +
 
 +
== Usage ==
 +
Upon receiving an impulse at Run, an impulse is fired from True if Condition is True or from False if Condition is False. The default Condition value is False.
 +
 
 +
== Examples ==
 +
For similar if/else behavior which does not work via impulses consider the [[?: (LogiX node)|?: ternary operator]] node.
 +
== Node Menu ==
 +
</translate>
 +
 
 +
[[Category:LogiX|If]]
 +
[[Category:LogiX: Flow|If]]
 +
{{:NodeMenu-Flow}}

Revision as of 11:16, 13 July 2020

Other languages:
English • ‎日本語 • ‎한국어

The If node fires impulses from one of two outputs dependent on the Condition when an impulse is received.


Inputs & Outputs

Inputs
Color Label Type
Run Impulse
Condition Boolean
Outputs
Color Label Type
True Impulse
False Impulse

Usage

Upon receiving an impulse at Run, an impulse is fired from True if Condition is True or from False if Condition is False. The default Condition value is False.

Examples

For similar if/else behavior which does not work via impulses consider the ?: ternary operator node.

Node Menu

Flow
Back Events Boolean Latch Delay Delay With Value Dynamic Impulse Receiver Dynamic Impulse Receiver With Value`1
Dynamic Impulse Trigger Dynamic Impulse Trigger With Value`1 Fire On Change Fire On False Fire On True Fire While True For
If Impulse Demultiplexer Impulse Multiplexer Local Fire On Change`1 Local Fire On False Local Fire On True Local Impulse Timeout
Local Leaky Impulse Bucket One Per Frame Pulse Random Sequence Timer Update Updates Delay
Updates Delay With Value While