Skip to main content

Name your values

Name your data with variables.

They improve readability of notebooks with a layer of abstraction.

Declaration

Declare a variable with the = operator:

120 meters²

Variables can contain letters from a to z, upper or lower case. They can't contain spaces or special characters except numbers, underscores ("_") or emojis.

Referencing

Reference variables on calculation blocks:

$6,000 per month

Redefinition

Existing variables can't be redefined after declaration:

The "Beans" name is already taken. It has been either defined elsewhere or is a language constant.

A simple solution is declaring a new variable:

2 beans

Constants

The Language supports some contants by default such as π (pi) and e (Euler's numbers).