ComfyUI > Nodes > ComfyUI-LogicUtils > Manual Choice Float

ComfyUI Node: Manual Choice Float

Class Name

ManualChoiceFloat

Category
Logic Gates
Author
aria1th (Account age: 3016days)
Extension
ComfyUI-LogicUtils
Latest Updated
2026-01-21
Github Stars
0.1K

How to Install ComfyUI-LogicUtils

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

Manual Choice Float Description

Parses a string to extract and convert a specified numeric choice to a float using a separator.

Manual Choice Float:

The ManualChoiceFloat node is designed to parse a given input string, split it based on a specified separator, and return a specific choice as a float. This node is particularly useful when you have a list of numeric options embedded in a string format and need to extract a particular value based on its position in the list. By allowing you to specify the separator and the index of the desired choice, this node provides flexibility in handling various string formats. Its primary goal is to facilitate the extraction and conversion of string-based numeric data into a float, which can then be used in further computations or logic operations within your AI art projects.

Manual Choice Float Input Parameters:

input_string

The input_string parameter is a string that contains the list of numeric options you want to choose from. These options should be separated by a specific character, which you will define using the separator parameter. The default value for this parameter is "1.0$2.0$3.0", which means that by default, the node will look for numbers separated by the $ character. This parameter is crucial as it holds the data from which a choice will be extracted and converted into a float.

separator

The separator parameter defines the character used to split the input_string into individual choices. By default, this is set to "$", but you can change it to any character that suits your data format. The separator is essential for correctly parsing the input_string and ensuring that the node can accurately identify and extract the individual numeric options.

index

The index parameter specifies the position of the choice you want to extract from the split input_string. It is an integer value, with a default of 0, meaning it will select the first element by default. The minimum value is 0, and the maximum is (2**63-1), allowing for a wide range of indices. This parameter is critical as it determines which specific numeric option will be converted to a float and returned by the node.

Manual Choice Float Output Parameters:

FLOAT

The output of the ManualChoiceFloat node is a single float value. This value is the numeric option extracted from the input_string based on the specified index and converted from a string to a float. This output is important as it allows you to use the extracted numeric value in further calculations or logic within your AI art projects, providing a seamless way to handle string-based numeric data.

Manual Choice Float Usage Tips:

  • Ensure that the input_string is correctly formatted with the appropriate separator to avoid parsing errors.
  • Use the index parameter to dynamically select different options from the input_string based on your project's needs.
  • Consider using this node in conjunction with other nodes that require numeric inputs to streamline your workflow.

Manual Choice Float Common Errors and Solutions:

IndexError: list index out of range

  • Explanation: This error occurs when the specified index is greater than the number of elements in the split input_string.
  • Solution: Verify that the index is within the range of available choices in the input_string. Adjust the index or ensure that the input_string contains enough elements.

ValueError: could not convert string to float

  • Explanation: This error happens when the selected choice cannot be converted to a float, possibly due to incorrect formatting or non-numeric characters.
  • Solution: Check the input_string to ensure that all choices are valid numeric strings. Correct any formatting issues or remove non-numeric characters.

Manual Choice Float Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LogicUtils
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.