> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-comfy-docs-comfyapi-search.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DCTestNode - ComfyUI Built-in Node Documentation

> DCTestNode is a logic node that returns different types of data based on a user's selection from a dynamic combo box.

DCTestNode is a logic node that returns different types of data based on a user's selection from a dynamic combo box. It acts as a conditional router, where the chosen option determines which input field is active and what type of value the node will output. The node is flagged as an output node in ComfyUI.

## Inputs

The node uses a dynamic combo selector: the `combo` parameter is always visible, and the other input fields appear only when their corresponding option is selected.

### Common Inputs

| Parameter | Description                                                                                   | Data Type      | Required | Range                                                          |
| --------- | --------------------------------------------------------------------------------------------- | -------------- | -------- | -------------------------------------------------------------- |
| `combo`   | The main selection that determines which input field is active and what the node will output. | DYNAMIC\_COMBO | Yes      | `"option1"`<br />`"option2"`<br />`"option3"`<br />`"option4"` |

### option1 Inputs

| Parameter | Description                                                                                    | Data Type | Required | Range |
| --------- | ---------------------------------------------------------------------------------------------- | --------- | -------- | ----- |
| `string`  | A text input field. This field is only active and required when `combo` is set to `"option1"`. | STRING    | Yes      | -     |

### option2 Inputs

| Parameter | Description                                                                                            | Data Type | Required | Range |
| --------- | ------------------------------------------------------------------------------------------------------ | --------- | -------- | ----- |
| `integer` | A whole number input field. This field is only active and required when `combo` is set to `"option2"`. | INT       | Yes      | -     |

### option3 Inputs

| Parameter | Description                                                                                      | Data Type | Required | Range |
| --------- | ------------------------------------------------------------------------------------------------ | --------- | -------- | ----- |
| `image`   | An image input field. This field is only active and required when `combo` is set to `"option3"`. | IMAGE     | Yes      | -     |

### option4 Inputs

When `combo` is set to `"option4"`, the node shows a second dynamic combo selector (`subcombo`) that controls a nested set of input fields.

| Parameter  | Description                                                                                                                              | Data Type      | Required | Range                  |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -------------- | -------- | ---------------------- |
| `subcombo` | A secondary dynamic combo selection that appears when `combo` is set to `"option4"`. It determines which nested input fields are active. | DYNAMIC\_COMBO | Yes      | `"opt1"`<br />`"opt2"` |
| `float_x`  | A decimal number input. This field is only active and required when `combo` is set to `"option4"` and `subcombo` is set to `"opt1"`.     | FLOAT          | Yes      | -                      |
| `float_y`  | A decimal number input. This field is only active and required when `combo` is set to `"option4"` and `subcombo` is set to `"opt1"`.     | FLOAT          | Yes      | -                      |
| `mask1`    | A mask input field. This field is only active when `combo` is set to `"option4"` and `subcombo` is set to `"opt2"`. It is optional.      | MASK           | No       | -                      |

**Parameter Constraints:**

* The `combo` parameter controls the visibility and requirement of all other input fields. Only the inputs associated with the selected `combo` option will be shown and are required (except for `mask1`, which is optional).
* When `combo` is set to `"option4"`, the `subcombo` parameter becomes required and controls a second set of nested inputs (`float_x`/`float_y` or `mask1`).
* If `combo` receives a value that is not one of the four listed options, the node raises an error.

## Outputs

| Output Name | Description                                                                                                                                                                                          | Data Type |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `output`    | The output depends on the selected `combo` option. It can be a STRING (`"option1"`), an INT (`"option2"`), an IMAGE (`"option3"`), or a string representation of the `subcombo` value (`"option4"`). | ANYTYPE   |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/DCTestNode/en.md)

***

**Source fingerprint (SHA-256):** `9dd616a427a56eddb78b48d6eea6f71419b7097d417afae5557132b333641e69`
