$incVariable

Function $incVariable adds the specified decimal value and the value of the named variable.
Syntax
    $incVariable{variable_name}{decimal_value}
DocumentationSubstracts the specified decimal value and the value of the named variable:

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

    $if{$existsVariable{value}}
      {
      $incVariable{value}
      }
    and is equivalent to the expression

    $if{$existsVariable{value}}
      {
      $setVariable{value}{$add{$getVariable{value}}{1}}
      }
    or equivalent to the expression

    $if{$existsVariable{value}}
      {
      $setVariable{value}{$inc{$getVariable{value}}}
      }
The following expression adds the variable named 'value' and the number 7

    $if{$existsVariable{value}}
      {
      $incVariable{value}{7}
      }
    and is equivalent to the expression

    $if{$existsVariable{value}}
      {
      $setVariable{value}{$add{$getVariable{value}}{7}}
      }
    or equivalent to the expression

    $if{$existsVariable{value}}
      {
      $for{$set{counter}{0}}{$less{counter}{7}}{$incLocal{counter}}
        {
        $setVariable{value}{$inc{$getVariable{value}}}
        }
      }
GroupMath
Minimum required transaction-mode:UPDATE=TREE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 2