Skip to content

capturegraph.procedures.nodes.automatic.operators.boolean #

BoolNot #

Bases: Procedure[PBool]

Logical NOT operator for boolean values.

Returns the logical negation of a boolean value (true becomes false, false becomes true).

Attributes:

Name Type Description
value Procedure[PBool]

The boolean value to negate

Source code in capturegraph-lib/capturegraph/procedures/nodes/automatic/operators/boolean.py
@make_procedure
class BoolNot(Procedure[PBool]):
    """
    Logical NOT operator for boolean values.

    Returns the logical negation of a boolean value (true becomes false, false becomes true).

    Attributes:
        value (Procedure[PBool]): The boolean value to negate
    """

    value: Procedure[PBool]

BoolAnd #

Bases: Procedure[PBool]

Logical AND operator for boolean values.

Returns true only if both left and right operands are true.

Attributes:

Name Type Description
left Procedure[PBool]

The left operand

right Procedure[PBool]

The right operand

Source code in capturegraph-lib/capturegraph/procedures/nodes/automatic/operators/boolean.py
@make_procedure
class BoolAnd(Procedure[PBool]):
    """
    Logical AND operator for boolean values.

    Returns true only if both left and right operands are true.

    Attributes:
        left (Procedure[PBool]): The left operand
        right (Procedure[PBool]): The right operand
    """

    left: Procedure[PBool]
    right: Procedure[PBool]

BoolOr #

Bases: Procedure[PBool]

Logical OR operator for boolean values.

Returns true if either left or right operand (or both) are true.

Attributes:

Name Type Description
left Procedure[PBool]

The left operand

right Procedure[PBool]

The right operand

Source code in capturegraph-lib/capturegraph/procedures/nodes/automatic/operators/boolean.py
@make_procedure
class BoolOr(Procedure[PBool]):
    """
    Logical OR operator for boolean values.

    Returns true if either left or right operand (or both) are true.

    Attributes:
        left (Procedure[PBool]): The left operand
        right (Procedure[PBool]): The right operand
    """

    left: Procedure[PBool]
    right: Procedure[PBool]