$decCurrent

Substracts the specified decimal value and the value of the named current variable.
Syntax
    $decCurrent{current_variable_name}{decimal_value}
    $decCurrent{current_variable_name}
DocumentationSubstracts 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 decremented.
      decimal_value, an optional parameter that defaults to 1 and represents the decrementation 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 decrements the current variable named 'value'

    $if{$existsCurrent{value}}
      {
      $decCurrent{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}{$dec{$getCurrent{value}}}
      }
The following expression substracts the current variable named 'value' and the number 7

    $if{$existsCurrent{value}}
      {
      $decCurrent{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}{$dec{$getCurrent{value}}}
        }
      }
GroupMath
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 2