| Syntax |
|
| Documentation | Adds the specified decimal value and the value of the named current variable:
decimal_value, an optional parameter that defaults to 1 and represents the incrementation amount of the current variables value.
an java.lang.NumberFormatException if 'decimal_value' is not a numeric decimal value. |
| Examples | |
The following expression increments the current variable named 'value'
$incCurrent{value} } $if{$existsCurrent{value}}
$setCurrent{value}{$add{$getCurrent{value}}{1}} } $if{$existsCurrent{value}}
$setCurrent{value}{$inc{$getCurrent{value}}} }
$incCurrent{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}{$inc{$getCurrent{value}}} } |
|
| Group | Math |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | 2 |