Boolean Operations

Description

This operator calculates the result based on the specified Boolean logic operation and outputs a Boolean value.

Overview

Basic "AND, OR, NOT" logical operations.

Scenarios

In complex algorithm flows, it is used to create conditional branches and conditional judgments, controlling the subsequent execution path based on Boolean logic operation results.

Inputs and Outputs

Inputs

Input 1: The first Boolean input, used for all logic operations (AND, OR, NOT).

Input 2: The second Boolean input, used only for AND and OR operations. It can be left unset for NOT operations.

Outputs

Boolean output: The final result obtained after the logic operation.

Parameters

Calculation Method

Description

Specifies the boolean operation to perform, supporting "AND", "OR", and "NOT".

Tuning Instructions

  • AND: Requires all conditions to be true simultaneously. The output is "true" only when both "Input 1" and "Input 2" are "true"; otherwise the output is "false".

  • OR: Requires only one condition to be true. The output is "true" as long as at least one of "Input 1" and "Input 2" is "true"; the output is "false" only when both are "false".

  • NOT: Used for negation. This operation applies only to "Input 1". If "Input 1" is "true", the output is "false"; if "Input 1" is "false", the output is "true". "Input 2" is ignored in this mode.

Parameter Range

Values/Range:

  • AND

  • OR

  • NOT

Default: AND