$incLocal

Adds the specified decimal value and the value of the named local variable.
Syntax
    $decLocal{local_variable_name}{decimal_value}
DocumentationAdds the specified decimal value and the value of the named local variable:

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

    $if{$existsLocal{value}}
      {
      $incLocal{value}
      }
    and is equivalent to the expression

    $if{$existsLocal{value}}
      {
      $set{value}{$add{$get{value}}{-1}}
      }
    or equivalent to the expression

    $if{$existsLocal{value}}
      {
      $set{value}{$inc{$get{value}}}
      }
The following expression adds the local variable named 'value' and the number 7

    $if{$existsLocal{value}}
      {
      $incLocal{value}{7}
      }
    and is equivalent to the expression

    $if{$existsLocal{value}}
      {
      $set{value}{$add{$get{value}}{-7}}
      }
    or equivalent to the expression

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