Skip to content
On this page

Expressions โ€‹

Like most languages, SmartPy has expressions.

For example, represents the contract storage field x and 2 represents the number 2, whereasย +ย 2 represents their sum.

Inside a contract, when we write:

y = + 2

We declare y as an alias the SmartPy expressionย +ย 2.