Subtract

This function block is designed for performing subtraction operations on one or more numerical inputs. It allows users to specify how many inputs to process, and calculates the result based on the given numbers.

📥 Inputs

Input Size Select the number of inputs you want to use for the subtraction operation (2-20). The default is 2.

Number These inputs accept numerical values that will be subtracted from the first input.

📤 Outputs

Number This output provides the result of the subtraction operation.

🕹️ Controls

Input Size A dropdown menu that allows users to select the number of inputs for this block. Adjusting this will automatically create or remove input fields accordingly.

🎨 Features

Dynamic Input Handling The block automatically adjusts the number of input sockets based on user selection, allowing for flexible use.

Clear and Simple Operations The subtraction operation is straightforward, providing clear results based on the provided input values.

📝 Usage Instructions

  1. Select Input Size: Use the Input Size dropdown to specify how many numbers you want to subtract from the first input. You can choose between 2 and 20.

  2. Provide Inputs: Enter the numerical values into the provided input fields according to the selected size.

  3. Evaluate the Operation: Once the inputs are connected and filled in, run the block to perform the subtraction. The result will be available at the output.

📊 Evaluation

When the block is executed, it will subtract all subsequent input values from the first input and produce a single output displaying the resulting value.

💡 Tips and Tricks

Using Multiple Inputs

To subtract multiple values from a single value, make use of the Input Size dropdown to accommodate all required inputs.

Monitoring Results

If you are chaining multiple math operations, consider using a Show Image block to visualize any intermediate results if applicable.

🛠️ Troubleshooting

No Outputs

Make sure all inputs are connected and filled with numerical values before evaluating the operation. If some inputs are absent or invalid, the output may not be generated.

Incorrect Results

Ensure that the inputs are properly defined and the first input represents the value from which you intend to subtract the subsequent values. Double-check the order of your inputs for accurate results.

Last updated