Visit ComfyUI Online for ready-to-use ComfyUI environment
Analyze integer digits for even/odd, generate Boolean list, useful for patterns, flexible digit handling.
The EvenOrOddList
node is designed to analyze a given integer and determine whether each digit is even or odd. It generates a Boolean list where each element corresponds to a digit of the integer, with True
indicating an odd digit and False
indicating an even digit. This node is particularly useful for creating patterns or sequences based on the parity of digits. Additionally, it provides a string output that details the results of the analysis, making it easy to understand the composition of the integer in terms of even and odd digits. The node can handle a specified quantity of digits and offers a flexible filling algorithm to manage cases where the number of digits in the integer is insufficient.
This parameter represents the integer to be analyzed. It is recommended to connect this to a Seed Generator
to ensure a dynamic and varied input. The integer is broken down into its individual digits, and each digit is checked for parity (even or odd).
This parameter specifies the length of the Boolean list to be generated. It determines how many digits of the integer will be analyzed. If the integer has fewer digits than the specified quantity, the node will loop back to the lowest digit to complete the list. The default value is 16, which is generally sufficient for most use cases.
This parameter controls the filling algorithm used when the integer has fewer digits than the specified quantity. When enabled (True
), the node will switch between the original and the negated Boolean values in future loops. When disabled (False
), the node will use the original Boolean values consistently in every loop. This allows for flexibility in how the Boolean list is completed.
This output is a list of Boolean values where each element corresponds to a digit of the input integer. True
indicates an odd digit, and False
indicates an even digit. This list can be used for further processing or pattern generation.
This output is a string that provides a detailed breakdown of the analysis. It includes the input integer, the number of times each digit was analyzed, and the results for each digit. This string is useful for understanding the composition of the integer and verifying the results of the analysis.
integer
input to a Seed Generator
.quantity
parameter based on the length of the Boolean list you need. For most applications, a length of 16 is sufficient.NOT_filling
parameter to control how the list is completed when the integer has fewer digits than required. Enable it for alternating patterns and disable it for consistent patterns.NOT_filling
parameter to allow the node to switch between original and negated Boolean values, or provide a larger integer.quantity
parameter is set to a non-positive value.quantity
parameter is set to a positive integer.© Copyright 2024 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.