Skip to content

BOOLEAN

Download Flojoy Studio to try this app
Takes one argument as input. Based on the input, it generates a boolean type data. If the status is True, then it generates true constant, else false constant. Params: status : bool, default: True either True or False value that you want to assign Returns: out : Boolean Boolean node
Python Code
from flojoy import flojoy, Boolean


@flojoy
def BOOLEAN(status: bool = True) -> Boolean:
    """Takes one argument as input.
    Based on the input, it generates a boolean type data.
    If the status is True, then it generates true constant, else false constant.

    Parameters
    ----------
    status : bool, default: True
        either True or False value that you want to assign

    Returns
    -------
    Boolean
        Boolean node
    """

    return Boolean(b=status)

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 value. Visualize its value using TEXT_VIEW node.