ComfyUI Node: isspace

Class Name

Basic data handling: StringIsSpace

Category
Basic/STRING/is
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

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

isspace Description

Evaluates if a string is entirely whitespace, returning `True` for only whitespace, else `False`.

isspace:

The StringIsSpace node is designed to evaluate whether a given string consists entirely of whitespace characters. This node is particularly useful when you need to validate or filter strings to ensure they contain only spaces, tabs, or other whitespace characters. It returns a boolean value, True if the string is composed solely of whitespace and contains at least one character, otherwise False. This functionality can be beneficial in scenarios where you need to clean or preprocess text data, ensuring that strings meet specific formatting requirements before further processing or analysis.

isspace Input Parameters:

string

The string parameter is the input text that you want to evaluate for whitespace content. It accepts any string value, and the node will check if all characters in this string are whitespace. The default value for this parameter is an empty string "". When using this node, ensure that the string you provide is the one you want to check for whitespace, as the result will depend entirely on the content of this input.

isspace Output Parameters:

boolean

The output is a boolean value that indicates whether the input string consists entirely of whitespace characters. If the string is composed solely of spaces, tabs, or similar whitespace characters and contains at least one character, the output will be True. Otherwise, it will be False. This output helps in determining the nature of the string content, allowing you to make decisions based on whether the string is purely whitespace.

isspace Usage Tips:

  • Use the StringIsSpace node to quickly filter out strings that are not meaningful, such as those that contain only spaces, from your dataset.
  • Combine this node with other string processing nodes to clean and prepare text data for further analysis or processing, ensuring that only relevant and non-empty strings are retained.

isspace Common Errors and Solutions:

Empty String Input

  • Explanation: If the input string is empty, the node will return False because there are no characters to evaluate as whitespace.
  • Solution: Ensure that the input string contains at least one character if you expect a True result. Consider checking for empty strings before using this node.

Non-String Input

  • Explanation: Providing a non-string input will result in an error, as the node expects a string to evaluate.
  • Solution: Verify that the input is a valid string. Convert other data types to strings before passing them to the node.

isspace Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
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.

isspace