Skip to main content

Destinations

As with sources, there are several options when it comes to deciding where should the money come from. The send statement provides the following ways of defining destinations:

Single destination

Allocation destinations

Similar to portioned sources, destination can be defined as a sequence of fractions to split the monetary onto multiple accounts.

In any case, the summed total of fractions in a block needs to be equal to 1 and the remaining keyword can be used to reach that total:

Out of convenience, percentage notation is also available:

Nested destinations

Finally, as with sources, destination blocks can be nested: