ComfyUI > Nodes > CRT-Nodes > Boolean Transform (CRT)

ComfyUI Node: Boolean Transform (CRT)

Class Name

Boolean Transform

Category
CRT/Utils/Logic & Values
Author
CRT (Account age: 1707days)
Extension
CRT-Nodes
Latest Updated
2026-03-16
Github Stars
0.1K

How to Install CRT-Nodes

Install this extension via the ComfyUI Manager by searching for CRT-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter CRT-Nodes 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 Transform (CRT) Description

Converts numeric strings to boolean, interpreting non-zero as true and zero/non-numeric as false.

Boolean Transform (CRT):

The Boolean Transform node is designed to convert a string representation of a number into a boolean value, providing a straightforward way to interpret numerical data as logical true or false. This node is particularly useful when you need to evaluate whether a given numeric input should be considered as a true or false condition in logical operations. By transforming numeric strings into boolean values, it simplifies decision-making processes in your workflows, allowing for more intuitive logic handling. The node's primary function is to assess whether the numeric value is non-zero, which it then interprets as true, while zero or non-numeric strings are interpreted as false. This capability is essential for AI artists who need to integrate logical conditions into their creative processes without delving into complex programming logic.

Boolean Transform (CRT) Input Parameters:

input_string

The input_string parameter is the core input for the Boolean Transform node, where you provide a string that represents a numeric value. This parameter is crucial as it determines the boolean output based on the numeric interpretation of the string. The node attempts to convert this string into a floating-point number. If the conversion is successful and the number is non-zero, the output will be true; otherwise, it will be false. The default value for this parameter is "0.0", which results in a false output. This parameter does not have explicit minimum or maximum values, but it should be a valid string representation of a number to ensure accurate conversion and results.

Boolean Transform (CRT) Output Parameters:

INT

The INT output parameter provides an integer representation of the boolean result, where true is represented as 1 and false as 0. This output is useful for scenarios where you need a numeric representation of the boolean value for further processing or integration with other nodes that require integer inputs.

BOOLEAN

The BOOLEAN output parameter is the direct boolean result of the transformation process. It indicates whether the input string, when converted to a number, is non-zero (true) or zero (false). This output is essential for logical operations and decision-making processes within your workflow, allowing you to branch or control the flow based on the evaluated condition.

Boolean Transform (CRT) Usage Tips:

  • Ensure that the input_string is a valid numeric string to avoid unexpected false results due to conversion errors.
  • Use the INT output when you need to interface with nodes or systems that require numeric inputs, while the BOOLEAN output is ideal for logical conditions.
  • Consider using this node in conjunction with other logic nodes to build complex decision-making workflows.

Boolean Transform (CRT) Common Errors and Solutions:

Invalid input string

  • Explanation: The input string cannot be converted to a number, resulting in a default false output.
  • Solution: Verify that the input_string is a valid numeric string. If necessary, preprocess the input to ensure it is in the correct format.

Unexpected false output

  • Explanation: The input string represents zero or is non-numeric, leading to a false boolean result.
  • Solution: Check the input string to ensure it represents a non-zero number if a true output is expected. Adjust the input accordingly.

Boolean Transform (CRT) Related Nodes

Go back to the extension to check out more related nodes.
CRT-Nodes
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 Models, enabling artists to harness the latest AI tools to create incredible art.

Boolean Transform (CRT)