Within Outlaw, calculated variables can be used to perform basic math functions between individual connected (Filevine) and non-connected variables.

ðŸ’¡ **These variables will be marked as Read Only within actual document generation (Flow). If any updates need to be made to the calculation, this must be made at the template level.**

## Creating a Calculated Variable:

- To start a calculated variable, begin with
`[%`

and then the name of your variable, finishing with the closed bracket`]`

. - Your calculated variable will appear red until a formula is provided - click your variable and begin typing out your formula.

Desired Function |
Symbol |

Multiplication |
* |

Division |
/ |

Addition |
+ |

Subtraction |
- |

Grouping of Variables |
{ ) |

**Note:** You will only be able to include **existing Currency, Number or Percentage** variables within your formula - Text, Image, Table variables etc will not work within the calculations.

## Calculated Variables within a Calculated Variable:

While building your template, remember that you can always look to include Calculated Variables as individual parts of another Calculated variable.

Using our example above, if we were looking to take the outcome of our `[%TestVaraible]`

and multiply that either by another calculated variable or standard Outlaw variable - we can!

## Utilizing Filevine Connected Variables within Calculated Variables

For those who are Filevine users, you will have the option to utilizing Connected variables within your Calculated variables as well.

Similar to the above, you will be **limited to Currency, Number, Percentages and other Calculated fields** that are existing in Filevine when looking to bring these in to a Calculated variable within your Filevine Document Assembly template.

Another piece to note is that your Connected variables must be existing in your template prior to adding them into the Calculated variable formula. See Example below.

Let's say we are looking to multiply our projected settlement amount for our case and the attorney's fee percentage for the case.

- First we want to ensure that these two fields are brought into our template - to do this you will start with the
`[+fv_`

and find your desired fields in the drop down and bring into your template. - Next, you can begin the Calculated variable using the
`[%`

, naming the variable and then completing with the`]`

. - As shown above, you will now want to enter in your formula for this connected variable.

Error Messages

When utilizing Calculated variables, you may see certain error messages on the variables due to the below reasons.

Error Message |
Meaning |

#DIV0! |
Your calculated variable is trying to divide by zero |

#ERROR! |
Invalid formula |

#NAME! |
There is an invalid or not found variable within the formula |

#REF! |
The Connected variable has a formula referencing itself or multiple vars referencing each other. |

## Comments

0 comments

Article is closed for comments.