Skip to main content
Version: v0.17.0

IncrementVariable

Alias:IncrementVariable, Increment

Output:Unit

Increment an integer variable by a particular amount

ParameterTypeRequiredPositionDefault ValueSummary
VariableVariableName1The variable to increment.
Amount
By
int21The amount to increment by.

Examples

Example 1

SCL

- <var> = 1
- IncrementVariable Variable: <var> Amount: 2
- Log <var>

Expected Logs

3

Example 2

SCL

- <var> = 1
- Increment <var> By: 2
- Log <var>

Expected Logs

3