| Syntax |
|
| Documentation | Adds the specified decimal value and the value of the named document item:
decimal_value, an optional parameter that defaults to 1 and represents the incrementation amount of the document item's value.
an java.lang.NumberFormatException if 'decimal_value' or the value of the document item are not numeric decimal. |
| Examples | |
The following expression increments the value of the document item named 'value'
$incDocumentItem{value} } $if{$existsDocumentItem{value}}
$setDocumentItem{value}{$add{$getDocumentItem{value}}{1}} } $if{$existsDocumentItem{value}}
$setDocumentItem{value}{$inc{$getDocumentItem{value}}} }
$incDocumentItem{value}{7} } $if{$existsDocumentItem{value}}
$setDocumentItem{value}{$add{$getDocumentItem{value}}{7}} } $if{$existsDocumentItem{value}}
$for{$set{counter}{0}}{$less{counter}{7}}{$incLocal{counter}}
$setDocumentItem{value}{$inc{$getDocumentItem{value}}} } |
|
| Group | Math |
| Minimum required transaction-mode: | UPDATE=TREE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | 2 |