$incCurrent

Adds the specified decimal value and the value of the named current variable.
Syntax
    $incCurrent{current_variable_name}{decimal_value}
DocumentationAdds the specified decimal value and the value of the named current variable:

    Parameters:
      current_variable_name, the name of the current variable whos value is to be incremented.
      decimal_value, an optional parameter that defaults to 1 and represents the incrementation amount of the current variables value.
Throws:
    an java.lang.IllegalArgumentException if the named current variable does not exist.
    an java.lang.NumberFormatException if 'decimal_value' is not a numeric decimal value.
Examples
The following expression increments the current variable named 'value'

    $if{$existsCurrent{value}}
      {
      $incCurrent{value}
      }
    and is equivalent to the expression

    $if{$existsCurrent{value}}
      {
      $setCurrent{value}{$add{$getCurrent{value}}{1}}
      }
    or equivalent to the expression

    $if{$existsCurrent{value}}
      {
      $setCurrent{value}{$inc{$getCurrent{value}}}
      }
The following expression adds the current variable named 'value' and the number 7

    $if{$existsCurrent{value}}
      {
      $incCurrent{value}{7}
      }
    and is equivalent to the expression

    $if{$existsCurrent{value}}
      {
      $setCurrent{value}{$add{$getCurrent{value}}{7}}
      }
    or equivalent to the expression

    $if{$existsCurrent{value}}
      {
      $for{$set{counter}{0}}{$less{counter}{7}}{$incLocal{counter}}
        {
        $setCurrent{value}{$inc{$getCurrent{value}}}
        }
      }
GroupMath
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 2