Skip to content

NOT_OR

Download Flojoy Studio to try this app
Takes two boolean data type and computs logical NOT OR operation on them. Params: default : Boolean The input boolean to which we apply the NOT OR operation. a : Boolean The input boolean to which we apply the NOT OR operation. Returns: out : Boolean The boolean result from the operation of the inputs.
Python Code
from flojoy import flojoy, Boolean


@flojoy
def NOT_OR(default: Boolean, a: Boolean) -> Boolean:
    """Takes two boolean data type and computs logical NOT OR operation on them.

    Parameters
    ----------
    default : Boolean
        The input boolean to which we apply the NOT OR operation.
    a : Boolean
        The input boolean to which we apply the NOT OR operation.

    Returns
    -------
    Boolean
        The boolean result from the operation of the inputs.
    """
    if not default.b and not a.b:
        return Boolean(b=True)
    return Boolean(b=False)

Find this Flojoy Block on GitHub

Example App

Having problems with this example app? Join our Discord community and we will help you out!
React Flow mini map

In this example, BOOLEAN node generates true and BOOLEAN1 node generates false.

Apply NOT_OR operation and it returns false.

Visualize the result using TEXT_VIEW node.