ComfyUI Node: isdigit

Class Name

Basic data handling: StringIsDigit

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

isdigit Description

StringIsDigit node checks if a string contains only digit characters, returning True or False.

isdigit:

The StringIsDigit node is designed to determine whether all characters in a given string are digits. This node is particularly useful when you need to validate input data to ensure it consists solely of digit characters, which are the characters '0' through '9'. The node returns True if every character in the string is a digit and there is at least one character present; otherwise, it returns False. This functionality is essential for scenarios where numeric validation is required, such as processing user input or ensuring data integrity in applications that handle numerical data.

isdigit Input Parameters:

string

The string parameter is the input string that you want to check for digit characters. It plays a crucial role in the node's execution as it determines the content that will be evaluated. The function checks each character in this string to verify if it is a digit. The default value for this parameter is an empty string "", which will result in a False output since there are no characters to evaluate. There are no specific minimum or maximum values for this parameter, but it should be a valid string.

isdigit Output Parameters:

boolean

The output is a boolean value that indicates whether all characters in the input string are digits. If the string contains only digit characters and is not empty, the output will be True. If the string contains any non-digit characters or is empty, the output will be False. This output is crucial for decision-making processes in workflows that require numeric validation.

isdigit Usage Tips:

  • Use the StringIsDigit node to validate user input when you expect a numeric value, ensuring that the input consists only of digit characters.
  • Combine this node with other string manipulation nodes to preprocess data before performing numeric operations, such as converting strings to integers.

isdigit Common Errors and Solutions:

Empty String Input

  • Explanation: The input string is empty, resulting in a False output because there are no characters to evaluate as digits.
  • Solution: Ensure that the input string contains at least one character before passing it to the node.

Non-Digit Characters Present

  • Explanation: The input string contains characters that are not digits, leading to a False output.
  • Solution: Check and clean the input string to remove any non-digit characters before using the node.

isdigit 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.

isdigit