ComfyUI > Nodes > ComfyUI-JakeUpgrade > Float Input Switch JKšŸ‰

ComfyUI Node: Float Input Switch JKšŸ‰

Class Name

CR Float Input Switch JK

Category
šŸ‰ JK/šŸ”€ Logic
Author
jakechai (Account age: 1902days)
Extension
ComfyUI-JakeUpgrade
Latest Updated
2025-05-20
Github Stars
0.08K

How to Install ComfyUI-JakeUpgrade

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

Float Input Switch JKšŸ‰ Description

Dynamic float value switch based on boolean input for adaptive workflows, streamlining conditional logic in AI art generation.

Float Input Switch JKšŸ‰:

The CR Float Input Switch JK node is designed to dynamically select between two float values based on a boolean input. This node is particularly useful in scenarios where you need to switch between different numerical values depending on a condition, allowing for more flexible and adaptive workflows. By leveraging this node, you can streamline processes that require conditional logic, ensuring that the appropriate float value is used in subsequent operations. This can be especially beneficial in AI art generation, where different parameters might need to be adjusted based on specific conditions or states.

Float Input Switch JKšŸ‰ Input Parameters:

boolean_value

The boolean_value parameter determines which float value will be selected. It accepts a boolean input (True or False). When set to True, the node will output the value specified in float_true. Conversely, when set to False, the node will output the value specified in float_false. The default value is False.

float_false

The float_false parameter specifies the float value to be used when boolean_value is False. This parameter accepts a float input and has a default value of 0. The minimum value is -18446744073709551615 and the maximum value is 18446744073709551615.

float_true

The float_true parameter specifies the float value to be used when boolean_value is True. This parameter accepts a float input and has a default value of 0. The minimum value is -18446744073709551615 and the maximum value is 18446744073709551615.

Float Input Switch JKšŸ‰ Output Parameters:

FLOAT

The FLOAT output parameter provides the selected float value based on the boolean_value input. If boolean_value is True, it outputs the value from float_true; otherwise, it outputs the value from float_false. This output is crucial for subsequent nodes that require a float input.

BOOLEAN

The BOOLEAN output parameter simply returns the value of the boolean_value input. This can be useful for debugging or for further conditional logic in your workflow.

Float Input Switch JKšŸ‰ Usage Tips:

  • Use the boolean_value parameter to control which float value is passed to subsequent nodes, allowing for dynamic adjustments based on conditions.
  • Ensure that the float_false and float_true values are set appropriately to cover the range of scenarios you anticipate in your workflow.
  • Combine this node with other logic nodes to create complex conditional structures that can adapt to various inputs and states.

Float Input Switch JKšŸ‰ Common Errors and Solutions:

Invalid float range

  • Explanation: The float value provided is outside the acceptable range.
  • Solution: Ensure that the float values for float_false and float_true are within the range of -18446744073709551615 to 18446744073709551615.

Missing boolean input

  • Explanation: The boolean_value parameter is not provided.
  • Solution: Make sure to supply a boolean value (True or False) to the boolean_value parameter to determine which float value to use.

Incorrect float input type

  • Explanation: The input provided for float_false or float_true is not a float.
  • Solution: Verify that the inputs for float_false and float_true are valid float numbers.

Float Input Switch JKšŸ‰ Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-JakeUpgrade
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 Playground, enabling artists to harness the latest AI tools to create incredible art.