Replace None

This function block is designed to replace None values in the input data with a specified new value. It's useful for ensuring that subsequent operations have valid data to work with.

πŸ“₯ Inputs

Input Data The incoming data that will be checked for None values.

New Data The value that will replace the input data if the input data is None.

πŸ“€ Outputs

Replaced Data This output provides the input data, with None values replaced by the new specified data.

πŸ•ΉοΈ Controls

This function block does not have traditional controls, but it accepts inputs via connected function blocks.

🎨 Features

Simple Replacement Replaces None values in the input data, providing a simple way to ensure data integrity.

Generic Data Handling Works with any type of data, making it versatile for various use cases.

πŸ“ Usage Instructions

  1. Connect Input Data: Link the data source that may contain None values to the Input Data input.

  2. Specify New Value: Connect a value to the New Data input that you want to use as a replacement for any None values.

  3. Evaluate: When the block is evaluated, it will output the input data with any None values replaced by the new specified data.

πŸ“Š Evaluation

When executed, this function block checks the input data. If it's None, it outputs the new data; otherwise, it returns the original data.

πŸ’‘ Tips and Tricks

Replacing Default Values

You can use this function block to set default values for downstream operations by linking it to input sources that might occasionally produce None.

Combining with Other Data Operations

Combining this block with other data manipulation blocks, such as List Operations or Math Operations, can greatly enhance data flow and integrity in your projects.

πŸ› οΈ Troubleshooting

No Output for Valid Data

If valid data is not being outputted as expected, ensure that the first input is properly connected and is not being inadvertently overridden or altered.

Connection Issues

Ensure that both input sockets are connected correctly, and that compatible data types are being provided to ensure expected functionality.

Last updated