2.1. Set Command¶
The Set Command, sets one value, variable, parameter, or mathematical expression to another.
Here’s some examples of how the Set Command can be used:
2.2. Increment Command¶
You may need to set a value to itself plus one. Instead of using the Set Command, in this case, it’s more effective to use the Increment Command. The Increment Command takes a value(number,variable,parameter) and increases, decreases, multiplies, or divides it by another value(value,variable,parameter,mathematical expression).
In the example pictured below, the Increment Command increases the Score Variable by 100. The Set Command accomplishes the same result with more effort.
Keep in mind. Decreasing a value by a negative amount results in a positive number.