Visit ComfyUI Online for ready-to-use ComfyUI environment
Converts string input to boolean value for decision-making based on textual data, aiding in conditional logic operations.
The CR String To Boolean node is designed to convert a string input into a boolean value, which is a fundamental data type in programming representing true or false states. This node is particularly useful when you need to interpret textual data as boolean values, enabling you to make decisions based on string inputs. For instance, if you have a text field that can either be "true" or "false", this node will help you convert these string values into their corresponding boolean representations. This conversion is essential in various scenarios, such as conditional logic, where the boolean output can be used to control the flow of operations. The node also provides a helpful link to additional documentation, ensuring you have access to further information if needed.
The text
parameter is a required input that accepts a string value. This parameter is the string that you want to convert into a boolean. The function checks if the input string is "True" or "true" to convert it to a boolean True
, and "False" or "false" to convert it to a boolean False
. If the input string does not match any of these values, the conversion will not occur. The default value for this parameter is an empty string, and it does not support multiline input.
The BOOLEAN
output parameter represents the boolean value resulting from the conversion of the input string. If the input string is "True" or "true", this output will be True
. If the input string is "False" or "false", this output will be False
. This output is crucial for any subsequent operations that require a boolean value.
The show_help
output parameter provides a URL link to the documentation page for the CR String To Boolean node. This link directs you to a resource where you can find more detailed information and examples on how to use the node effectively. It is a string output that always contains the URL "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Conversion-Nodes#cr-string-to-boolean".
True
and "False" or "false" for False
.© Copyright 2024 RunComfy. All Rights Reserved.