Skip to main content

Referece a Previous Result

If you want to do a calculation that requires many steps, you may wish to break down those steps into separate statements. To achieve that, you can store intermediary values on variables, like this:

Instead, Deci language stores the previous value in a variable called _, which you can use instead:

The resulting code will probably be less readable, but avoids you having to imagine and type temporary variable names.