| Syntax |
$decCurrent{current_variable_name} |
| Documentation | Substracts the specified decimal value and the value of the named current variable:
decimal_value, an optional parameter that defaults to 1 and represents the decrementation amount of the current variables value.
an java.lang.NumberFormatException if 'decimal_value' is not a numeric decimal value. |
| Examples | |
The following expression decrements the current variable named 'value'
$decCurrent{value} } $if{$existsCurrent{value}}
$setCurrent{value}{$add{$getCurrent{value}}{-1}} } $if{$existsCurrent{value}}
$setCurrent{value}{$dec{$getCurrent{value}}} }
$decCurrent{value}{7} } $if{$existsCurrent{value}}
$setCurrent{value}{$add{$getCurrent{value}}{-7}} } $if{$existsCurrent{value}}
$for{$set{counter}{0}}{$less{counter}{7}}{$incLocal{counter}}
$setCurrent{value}{$dec{$getCurrent{value}}} } |
|
| Group | Math |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | 2 |