Reference 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 in variables, like this:
Alternatively, in the Deci language, you can refer to the previous value using the special variable _
, eliminating the need for explicit variable names:
Using
_
as the variable may make the code less readable, but it saves you from creating and typing temporary variable names.