Skip to main content

Arithmetic Flow Variable

Arithmetic Flow Variable (v1.0.0)

Apply an arithmetic calculation on a flow variable.

View Source

Inputs:

Name: Variable 

Type: string

Tooltip:

Specify the name of an existing flow variable containing a numeric value to perform arithmetic on.
The variable must exist and contain a valid number.

\nExample\n
{{{args.variables.user.transcodeStage}}}

Name: Operation 

Type: string

Tooltip:

Select the arithmetic operation to apply to the variable.

+ : Add the quantity to the variable
- : Subtract the quantity from the variable
* : Multiply the variable by the quantity
/ : Divide the variable by the quantity (quantity cannot be 0)
Name: Quantity 

Type: string

Tooltip:

Specify the numeric value to use in the arithmetic operation.
Must be a valid number. Cannot be 0 when using division.

\nExample\n
1

\nExample\n
5.5

\nExample\n
-10

Outputs:

1: Continue to next plugin