ComfyUI > Nodes > Comfyroll Studio > ⚙️ CR Set Value On Boolean

ComfyUI Node: ⚙️ CR Set Value On Boolean

Class Name

CR Set Value On Boolean

Category
🧩 Comfyroll Studio/🛠️ Utils/🔀 Conditional
Author
Suzie1 (Account age: 2158days)
Extension
Comfyroll Studio
Latest Updated
2024-06-05
Github Stars
0.49K

How to Install Comfyroll Studio

Install this extension via the ComfyUI Manager by searching for Comfyroll Studio
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyroll Studio 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

⚙️ CR Set Value On Boolean Description

Dynamically set values based on boolean condition for simplified conditional logic and task automation.

⚙️ CR Set Value On Boolean:

The CR Set Value On Boolean node is designed to help you dynamically set values based on a boolean condition. This node is particularly useful when you need to make decisions in your workflow based on a true or false condition. By providing two different values for the true and false states, you can control the flow of your operations more effectively. This node simplifies conditional logic, making it easier to manage and automate tasks that depend on binary conditions.

⚙️ CR Set Value On Boolean Input Parameters:

boolean

This parameter represents the boolean condition that determines which value will be selected. It accepts a boolean input (True or False). The default value is True, and it is a required input.

value_if_true

This parameter specifies the value to be returned if the boolean condition is True. It accepts a floating-point number with a default value of 1. The range for this parameter is from -18446744073709551615 to 18446744073709551615.

value_if_false

This parameter specifies the value to be returned if the boolean condition is False. It accepts a floating-point number with a default value of 0. The range for this parameter is from -18446744073709551615 to 18446744073709551615.

⚙️ CR Set Value On Boolean Output Parameters:

INT

This output returns the integer representation of the selected value based on the boolean condition. If the condition is True, it returns the integer part of value_if_true; otherwise, it returns the integer part of value_if_false.

FLOAT

This output returns the floating-point representation of the selected value based on the boolean condition. If the condition is True, it returns value_if_true; otherwise, it returns value_if_false.

show_help

This output provides a URL link to the help documentation for this node. It is a string that directs you to additional resources and examples on how to use the node effectively.

⚙️ CR Set Value On Boolean Usage Tips:

  • Use this node to control the flow of your operations based on simple true/false conditions, which can help in automating decision-making processes.
  • Ensure that the boolean input is correctly set to avoid unexpected results. Double-check the values provided for value_if_true and value_if_false to ensure they meet your requirements.

⚙️ CR Set Value On Boolean Common Errors and Solutions:

Invalid boolean input

  • Explanation: The boolean input is not correctly set to True or False.
  • Solution: Ensure that the boolean input is explicitly set to either True or False.

Out of range value

  • Explanation: The values provided for value_if_true or value_if_false are outside the acceptable range.
  • Solution: Verify that the values for value_if_true and value_if_false are within the range of -18446744073709551615 to 18446744073709551615.

Missing required input

  • Explanation: One or more required inputs are not provided.
  • Solution: Ensure that all required inputs, including the boolean condition, are provided and correctly set.

⚙️ CR Set Value On Boolean Related Nodes

Go back to the extension to check out more related nodes.
Comfyroll Studio
RunComfy

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