Inc
This function can be used to move a value steadily towards a target value at a specified rate. The return value will stop changing when it reaches the target value.
Syntax
- number Inc(number target, number current,number increments)
Parameters
- target: the target value to move towards.
- current: the current value to start at.
- increments: units to move towards the target value.
Returns
Returns the incremented value.