Increment variable
XML
<math:inc var="var">
int
</math:inc>
<math:inc /> increments the value of a variable.
Attributes
| Name | Type | Description | Defined By |
|---|---|---|---|
| var | var | Variable name | math:inc |
Results
| Binding | Type | Predicate |
|---|---|---|
| var | int | N/A |
Examples
XML
<set var="number">1</set>
<math:inc var="number"/>
<output>$number</output>
<!-- 2 -->