ComfyUI > Nodes > SDVN Comfy node > #️⃣ Boolean

ComfyUI Node: #️⃣ Boolean

Class Name

SDVN Boolean

Category
📂 SDVN/💡 Creative
Author
Stable Diffusion VN (Account age: 281days)
Extension
SDVN Comfy node
Latest Updated
2025-04-27
Github Stars
0.04K

How to Install SDVN Comfy node

Install this extension via the ComfyUI Manager by searching for SDVN Comfy node
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter SDVN Comfy node in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

#️⃣ Boolean Description

Versatile logical operations node for comparing inputs with various expressions, outputting true or false based on conditions.

#️⃣ Boolean:

The SDVN Boolean node is a versatile tool designed to perform logical operations based on user-defined conditions. It allows you to compare two inputs, a and b, using a variety of logical expressions such as equality, inequality, greater than, less than, and membership checks. Depending on the result of the logical operation, the node outputs one of two possible values: input_true if the condition is met, or input_false if it is not. This functionality is particularly useful for creating dynamic workflows where decisions are made based on specific criteria, enabling more complex and responsive AI art generation processes.

#️⃣ Boolean Input Parameters:

input_true

This parameter represents the value that will be output if the specified logical condition evaluates to true. It can be of any data type, allowing for flexibility in what is returned when the condition is met.

input_false

This parameter represents the value that will be output if the specified logical condition evaluates to false. Like input_true, it can be of any data type, providing flexibility in the output when the condition is not met.

a

This is one of the two values to be compared in the logical operation. It can be of any data type, and its role is to serve as the first operand in the logical expression.

b

This is the second value to be compared in the logical operation. It can also be of any data type and serves as the second operand in the logical expression.

logic

This parameter defines the logical operation to be performed between a and b. It offers several options: "a = b", "a != b", "a > b", "a < b", "a >= b", "a <= b", "a in b", and "a not in b". Each option specifies a different type of comparison or membership check, determining the condition under which input_true or input_false will be returned.

#️⃣ Boolean Output Parameters:

output

The output parameter is the result of the logical operation. It will be either input_true or input_false, depending on whether the specified logical condition is satisfied. This output is crucial for directing the flow of a process based on dynamic conditions, allowing for adaptive and conditional logic in your AI art projects.

#️⃣ Boolean Usage Tips:

  • Use the SDVN Boolean node to create conditional branches in your workflow, allowing for different outcomes based on specific criteria.
  • Experiment with different logical operations to see how they affect the flow of your project, especially when working with dynamic data inputs.

#️⃣ Boolean Common Errors and Solutions:

TypeError: unsupported operand type(s)

  • Explanation: This error occurs when the types of a and b are not compatible with the selected logical operation.
  • Solution: Ensure that a and b are of compatible types for the chosen logical operation. For example, both should be numbers for comparisons like "a > b".

ValueError: invalid logic operation

  • Explanation: This error happens when an invalid or unsupported logic operation is specified.
  • Solution: Double-check the logic parameter to ensure it matches one of the supported operations: "a = b", "a != b", "a > b", "a < b", "a >= b", "a <= b", "a in b", or "a not in b".

#️⃣ Boolean Related Nodes

Go back to the extension to check out more related nodes.
SDVN Comfy node
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

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.