Variables

Because words make more sense than un-named numbers.

Soulver lets you create variables, like in a programming language. You declare a variable with the equals symbol '='.

discount = 10% | 10%
cost = $550 | $550
cost - discount | $495.00

Variables may include spaces.

Changing variables' values

A variable can be redefined by simply giving it a new value. The most recently defined value will be used on subsequent lines.

monthly rent = $1,900 // 2018 | $1,900
monthly rent = $2,150 // 2019 | $2,150
|
monthly rent / 4 people | $537.50

You can 'peek' at a variable's current value by holding down the shift key, and hovering over the variable.

You can't use a variable before it has been declared. This behaviour matches most programming languages.

Auto-completing

Instead of typing out a long variable name, you can hit the escape key and use the arrow keys to auto-complete the variable.

Hit escape to autocomplete long variable names

Global variables

You can also make variables that work across all your documents in the Tweak Calculator sheet (click the cog in the top right of the window).