Perform Math Operations Using the "Math Operation" Helper

Keragon’s Math Operation helper allows you to perform basic arithmetic calculations directly within your workflows. This is useful for automating calculations, transforming numerical values, and preparing data for further processing.

How to Use the Math Operation Helper

00:00: Learn how to perform mathematical operations using the math operation 00:04: action in caragon. 00:07: First go to your workflow editor. 00:11: Click the plus icon. 00:14: Access the helpers menu. 00:17: Select the math helpers option. 00:20: Choose the math operation action. 00:23: Choose the operation type here are the math operations that you can select 00:27: addition subtraction multiplication division 00:31: Modelo. 00:34: You can click the button to switch from static value to custom expression 00:38: or vice versa. 00:41: Let's try using static value first. 00:43: We can map the number values in the fields. 00:47: Save the configured math operation in this test. 00:50: I use the addition operation for one and two values. 00:55: Execute a test for the math operation. 00:58: View the outputs tab 01:01: You should see the output value here. 01:05: Using custom expression we can use the value field to map an array 01:09: in the math operation action. 01:12: Save the configuration in this test the array contains the values 01:16: 1 and 2. 01:19: Click the test step button. 01:22: View the outputs tab 01:25: You can see the result here. 01:28: This guide covered navigating configuring and testing math operations 01:32: within carriganns math operation action.

  • Open your workflow editor.

  • Click the + icon to add a new step.

  • In the step selection panel, click "Helpers".

  • From the Helpers options, select "Math Helpers".

  • Choose the "Math Operation" action.

  • Click the Operation field and select the desired operation:

    • Addition

    • Subtraction

    • Multiplication

    • Division

    • Modulo

  • Click the {} button to switch between:

    • Static Value: Manually enter numeric values.

    • Custom Expression: Map dynamic data or arrays from previous steps.

Using Static Values

  • Enter the numbers you want to calculate directly into the provided fields.

  • Example: Addition of 1 and 2.

Using Custom Expressions

  • Map an array of numbers or dynamic values from earlier workflow steps.

  • Example: Provide an array [1, 2, 3] for addition.

  • Click "Save" to apply changes.

  • Click "Test Step" to preview the result.

  • Go to the Outputs tab to view the calculated value.

Example Results:

  • Operation: Addition

  • Inputs: 1 and 2

  • Output: 3

  • Operation: Division

  • Inputs: 10 and 2

  • Output: 5

 

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more