Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI_SamplingUtils > Multi-Type Demo (Primitive)

ComfyUI Node: Multi-Type Demo (Primitive)

Class Name

MultiTypeDemo

Category
advanced/primitives
Author
silveroxides (Account age: 2211days)
Extension
ComfyUI_SamplingUtils
Latest Updated
2026-06-03
Github Stars
0.02K

How to Install ComfyUI_SamplingUtils

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

Multi-Type Demo (Primitive) Description

Demonstrates handling multiple data types in a single input for flexible processing and forwarding.

Multi-Type Demo (Primitive):

The MultiTypeDemo node is designed to demonstrate the handling of multiple data types within a single input. This node is particularly useful for scenarios where you need to process or forward data without being constrained by a single data type. It allows you to input a list containing a string, an integer, and a float, and it simply forwards these values as output. This capability is beneficial for AI artists who work with diverse data types and need a flexible node that can accommodate various input formats without requiring conversion or additional processing. The primary goal of the MultiTypeDemo node is to provide a straightforward example of multi-type input handling, showcasing how different primitive data types can be seamlessly integrated and processed within a node.

Multi-Type Demo (Primitive) Input Parameters:

type_list

The type_list parameter is a versatile input that accepts a list containing three different types: a string, an integer, and a float. This parameter is designed to demonstrate the node's ability to handle multiple data types simultaneously. The first element of the list should be a string, the second an integer, and the third a float. If any of these elements are not provided, the node will default to an empty string for the string, zero for the integer, and 0.0 for the float. This flexibility allows you to input a variety of data types without worrying about type mismatches, making it easier to integrate this node into workflows that involve diverse data inputs.

Multi-Type Demo (Primitive) Output Parameters:

output

The output parameter is a list that contains the values from the type_list input, forwarded directly without any modification. This output demonstrates the node's capability to handle and pass through multiple data types, maintaining the integrity of the input values. The list will contain the string, integer, and float values in the same order they were provided in the input. This output is particularly useful for verifying that the node correctly processes and forwards multi-type inputs, serving as a practical example of how different data types can be managed within a single node.

Multi-Type Demo (Primitive) Usage Tips:

  • Ensure that the type_list input contains exactly three elements: a string, an integer, and a float, to avoid assertion errors.
  • Use this node to test and understand how different data types can be handled within a single node, which can be beneficial for developing more complex workflows.

Multi-Type Demo (Primitive) Common Errors and Solutions:

Expected string type for first input, got <type>

  • Explanation: This error occurs when the first element of the type_list is not a string.
  • Solution: Ensure that the first element of the type_list is a string. If necessary, convert the input to a string before passing it to the node.

Expected int type for second input, got <type>

  • Explanation: This error occurs when the second element of the type_list is not an integer.
  • Solution: Ensure that the second element of the type_list is an integer. If necessary, convert the input to an integer before passing it to the node.

Expected float type for third input, got <type>

  • Explanation: This error occurs when the third element of the type_list is not a float.
  • Solution: Ensure that the third element of the type_list is a float. If necessary, convert the input to a float before passing it to the node.

Multi-Type Demo (Primitive) Related Nodes

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

Multi-Type Demo (Primitive)