ComfyUI Node: isnumeric

Class Name

Basic data handling: StringIsNumeric

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

isnumeric Description

StringIsNumeric node checks if a string contains only numeric characters, returning a boolean result.

isnumeric:

The StringIsNumeric node is designed to determine whether all characters in a given string are numeric. This node is particularly useful when you need to validate input data to ensure it consists solely of numeric characters, which include both digit characters and those with the Unicode numeric value property. By returning a boolean value, this node helps you quickly ascertain the numeric nature of a string, facilitating tasks such as data validation, preprocessing, or filtering in your AI art projects. Its primary goal is to streamline the process of checking numeric content in strings, making it an essential tool for handling and verifying data integrity.

isnumeric Input Parameters:

string

The string parameter is the input text that you want to evaluate for numeric content. This parameter accepts any string value, and its primary function is to serve as the subject of the numeric check performed by the node. The impact of this parameter on the node's execution is direct, as the node will analyze the characters within this string to determine if they are all numeric. 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, as it can accept any string length.

isnumeric Output Parameters:

boolean

The output of the StringIsNumeric node is a boolean value, which indicates whether the input string consists entirely of numeric characters. If the string is composed solely of numeric characters and contains at least one character, the output will be True. Otherwise, the output will be False. This output is crucial for determining the numeric validity of the input string, allowing you to make informed decisions based on the presence or absence of numeric content.

isnumeric Usage Tips:

  • Use the StringIsNumeric node to validate user input or data fields where numeric values are expected, ensuring data integrity before processing.
  • Combine this node with other string validation nodes to create comprehensive data validation workflows, especially when dealing with mixed data types.

isnumeric Common Errors and Solutions:

Empty String Input

  • Explanation: When the input string is empty, the node will return False because there are no characters to evaluate as numeric.
  • Solution: Ensure that the input string contains at least one character before passing it to the node for evaluation.

Non-Numeric Characters Present

  • Explanation: If the input string contains any non-numeric characters, the node will return False.
  • Solution: Verify and clean your input data to remove any non-numeric characters before using this node to check for numeric content.

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

isnumeric