Skip to content

boolean

boolean #

Boolean operator procedures that combine and negate boolean procedure results.

These nodes back the ~, &, and | operator overloads on Procedure instances and enable boolean logic within workflows.

BoolAnd #

Bases: Procedure[Bool]

Combine two boolean values with logical AND.

Returns true only if both left and right operands are true. Also available as the & operator on procedures.

Attributes:

Name Type Description
left Input[Bool]

The left boolean operand.

right Input[Bool]

The right boolean operand.

Source code in capturegraph-lib/capturegraph/procedures/nodes/process/operators/boolean.py
@make_procedure
class BoolAnd(Procedure[Bool]):
    """Combine two boolean values with logical AND.

    Returns true only if both left and right operands are true. Also
    available as the ``&`` operator on procedures.

    Attributes:
        left: The left boolean operand.
        right: The right boolean operand.
    """

    left: Input[Bool]
    right: Input[Bool]

BoolNot #

Bases: Procedure[Bool]

Negate a boolean value (logical NOT).

Returns the logical negation of the input: true becomes false, false becomes true. Also available as the ~ operator on procedures.

Attributes:

Name Type Description
value Input[Bool]

The boolean procedure to negate.

Source code in capturegraph-lib/capturegraph/procedures/nodes/process/operators/boolean.py
@make_procedure
class BoolNot(Procedure[Bool]):
    """Negate a boolean value (logical NOT).

    Returns the logical negation of the input: true becomes false, false
    becomes true. Also available as the ``~`` operator on procedures.

    Attributes:
        value: The boolean procedure to negate.
    """

    value: Input[Bool]

BoolOr #

Bases: Procedure[Bool]

Combine two boolean values with logical OR.

Returns true if either left or right operand (or both) are true. Also available as the | operator on procedures.

Attributes:

Name Type Description
left Input[Bool]

The left boolean operand.

right Input[Bool]

The right boolean operand.

Source code in capturegraph-lib/capturegraph/procedures/nodes/process/operators/boolean.py
@make_procedure
class BoolOr(Procedure[Bool]):
    """Combine two boolean values with logical OR.

    Returns true if either left or right operand (or both) are true. Also
    available as the ``|`` operator on procedures.

    Attributes:
        left: The left boolean operand.
        right: The right boolean operand.
    """

    left: Input[Bool]
    right: Input[Bool]