Data Type Converter

This function block is designed to convert data from one type to another. It can handle various data types, making it an essential tool for data manipulation in workflows.

πŸ“₯ Inputs

Generic This input accepts any type of data that you want to convert.

πŸ“€ Outputs

Generic The output provides the converted data based on the selected type.

πŸ•ΉοΈ Controls

Convert to: A dropdown menu that allows you to select the target data type for conversion. The available options include:

  • Integer

  • Boolean

  • String

  • Float

  • Batch

  • List

  • Dictionary

🎨 Features

Flexible Type Conversion Supports conversion between several different data types, including lists and batches.

Batch Handling Capable of processing data in batch format, converting individual items or entire lists.

πŸ“ Usage Instructions

  1. Connect Input Data: Link any data type to the input socket.

  2. Select Conversion Type: Choose the desired output data type from the Convert to: dropdown.

  3. Evaluate: Run the block to convert the input data to the selected type. The result will be available at the output socket.

πŸ“Š Evaluation

Upon execution, this function block processes the input data and returns it in the chosen format.

πŸ’‘ Tips and Tricks

Working with Batches

If you're converting lists to batches, use the List2Batch option for proper handling, and if you need to convert batches back to lists, select Batch2List.

Converting JSON Strings

When converting a JSON string to a dictionary, ensure that the input is formatted correctly. If any issues arise, check that the string is a valid JSON format before attempting the conversion.

πŸ› οΈ Troubleshooting

Received Invalid Input

If you encounter an "Invalid input data" tooltip, ensure that the input provided is of a compatible type for the selected conversion.

Last updated