Difference between revisions of "If (LogiX node)"
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: | ||
− | < | + | <languages></languages> |
− | + | <translate> | |
− | + | The '''If''' node fires impulses from one of two outputs dependent on the Condition when an impulse is received. | |
− | | | + | |
− | | | + | <!--[[File:|border|256px|right]]--> |
+ | |||
+ | == Inputs & Outputs == | ||
+ | {| class="wikitable" | ||
+ | |+Inputs | ||
|- | |- | ||
− | | | + | | Color |
− | | | + | | Label |
− | | | + | | Type |
|- | |- | ||
− | | style="background-color: | + | | style="background-color:{{Impulse-color}}" | |
− | | | + | | Run |
− | | | + | | Impulse |
|- | |- | ||
+ | | style="background-color:{{Boolean-color}}" | | ||
+ | | Condition | ||
+ | | Boolean | ||
|} | |} | ||
− | == | + | |
− | + | {| class="wikitable" | |
− | < | + | |+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
The If node fires impulses from one of two outputs dependent on the Condition when an impulse is received.
Inputs & Outputs
Color | Label | Type |
Run | Impulse | |
Condition | Boolean |
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.