Difference between revisions of "If (LogiX node)"
Jump to navigation
Jump to search
(Update page to new format) |
|||
Line 15: | Line 15: | ||
| style="background-color:{{Impulse-color}}" | | | style="background-color:{{Impulse-color}}" | | ||
| Run | | Run | ||
− | | Impulse | + | | [[:LogiX:Impulses|Impulse]] |
|- | |- | ||
| style="background-color:{{Boolean-color}}" | | | style="background-color:{{Boolean-color}}" | | ||
| Condition | | Condition | ||
− | | Boolean | + | | [[:Category:Types:Bool|Boolean]] |
|} | |} | ||
Line 31: | Line 31: | ||
| style="background-color:{{Impulse-color}}" | | | style="background-color:{{Impulse-color}}" | | ||
| True | | True | ||
− | | Impulse | + | | [[:LogiX:Impulses|Impulse]] |
|- | |- | ||
| style="background-color:{{Impulse-color}}" | | | style="background-color:{{Impulse-color}}" | | ||
| False | | False | ||
− | | Impulse | + | | [[:LogiX:Impulses|Impulse]] |
|} | |} | ||
Revision as of 00:22, 5 September 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.