Or
This function block performs a logical OR operation on boolean signals. Use it when you need the output to be TRUE if any of the input signals are TRUE.
π₯ Inputs (sockets)
BooleanAccepts a boolean signal (default: two boolean sockets).BooleanAccepts a boolean signal (default: two boolean sockets).
π€ Outputs (sockets)
BooleanThe result of the OR operation (TRUE if any input is TRUE).
πΉοΈ Controls
This block has no interactive controls.
π¨ Features
Simple logical OR operation for combining boolean signals.
Default setup provides two boolean input sockets to keep UI clear and simple.
Use in control flows, alarm logic, or decision-making branches where multiple conditions may enable the same outcome.
π Usage Instructions
Connect boolean-producing blocks (for example a manual switch or comparison block) to the input sockets.
Read the combined result from the
Booleanoutput. The output will be TRUE if at least one input is TRUE.Use the output to drive actuators, indicators, or further logic blocks.
π Evaluation
When evaluated, the block checks the boolean values on its input sockets and returns a single boolean result that represents the logical OR of all provided inputs.
π‘ Tips and Tricks
Combine with comparison blocks such as
Greater,Smaller, orEqualsto convert numeric checks into boolean signals before merging them withOr.Use
Logic Inputfor manual on/off controls and feed multiple manual signals intoOrto create a single enable signal.Use
AndandNottogether withOrto build more complex boolean expressions (for example: (A AND B) OR (NOT C)).To react to signal changes rather than levels, pair
Orwith edge/temporal helpers likeEdge RisingorDelay Step.To latch or hold results based on conditions, combine
OrwithSet - Reset.Use
Debug Inputto log or inspect incoming boolean signals during troubleshooting.Drive indicators or outputs using the result from
Orwith blocks likeLed OutputorOutputto visualize or export the logical result.
π οΈ Troubleshooting
Unexpected FALSE result: Verify all input sockets are receiving boolean signals. Use
Debug Inputto inspect each upstream signal.Floating or missing inputs: Ensure connected blocks provide valid boolean values; unconnected inputs may be treated as FALSE depending on your setup.
Timing issues: If inputs change quickly and the result appears unstable, add
Delay Stepor use edge detection blocks likeEdge Risingto stabilize logic transitions.
Last updated
Was this helpful?