Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates conditional mask selection based on boolean input for AI art workflows.
The CR Mask Input Switch JK node is designed to facilitate conditional logic within your AI art workflows by dynamically selecting between two different mask inputs based on a boolean value. This node is particularly useful when you need to apply different masks to your artwork depending on specific conditions or criteria. By leveraging this node, you can streamline your workflow, making it more efficient and adaptable to various scenarios without the need for manual intervention. The primary function of this node is to evaluate a boolean input and return one of the two provided masks accordingly, ensuring that the appropriate mask is applied based on the given condition.
The boolean_value
parameter is a boolean input that determines which mask will be selected. If set to True
, the node will output the mask_true
input; if set to False
, it will output the mask_false
input. This parameter is essential for controlling the conditional logic of the node. The default value is False
.
The mask_false
parameter is the mask input that will be selected and output by the node when the boolean_value
is False
. This parameter allows you to define the mask that should be used under the false condition. There are no specific minimum or maximum values for this parameter as it is a mask input.
The mask_true
parameter is the mask input that will be selected and output by the node when the boolean_value
is True
. This parameter allows you to define the mask that should be used under the true condition. Similar to mask_false
, there are no specific minimum or maximum values for this parameter as it is a mask input.
The MASK
output is the selected mask based on the evaluation of the boolean_value
parameter. If boolean_value
is True
, the mask_true
input is returned; if boolean_value
is False
, the mask_false
input is returned. This output is crucial for applying the correct mask to your artwork based on the specified condition.
The BOOLEAN
output is the same as the input boolean_value
. It is returned to provide confirmation of the condition that was evaluated, ensuring transparency and traceability in your workflow.
boolean_value
parameter to control the application of different masks dynamically, allowing for more flexible and adaptive workflows.mask_false
and mask_true
inputs are properly defined and relevant to your specific use case to avoid unexpected results.mask_false
or mask_true
) are not valid or properly defined.mask_false
and mask_true
inputs are correctly specified and are valid mask types.boolean_value
parameter is not provided or is missing.boolean_value
parameter is included and correctly set to either True
or False
.MASK
or BOOLEAN
types.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.