AND
Download Flojoy Studio to try this app
  
 Takes two boolean data type and computs logical AND operation on them.   Params:    default : Boolean  The input boolean to which we apply the AND operation.   a : Boolean  The input boolean to which we apply the AND operation.     Returns:    out : Boolean  The boolean result from the operation of the inputs.    
Python Code
from flojoy import flojoy, Boolean
@flojoy
def AND(default: Boolean, a: Boolean) -> Boolean:
    """Takes two boolean data type and computs logical AND operation on them.
    Parameters
    ----------
    default : Boolean
        The input boolean to which we apply the AND operation.
    a : Boolean
        The input boolean to which we apply the AND operation.
    Returns
    -------
    Boolean
        The boolean result from the operation of the inputs.
    """
    if default.b and a.b:
        return Boolean(b=True)
    else:
        return Boolean(b=False)
Example App
Having problems with this example app? Join our Discord community and we will help you out!
In this example, BOOLEAN nodes generate true values and apply AND logical operation on them.
Visualize the result using TEXT_VIEW node.