Home > Contents > Index >
INCCOUNTER
Increments or decrements a counter.
Syntax
<INCCOUNTER NAME="COUNTER_NAME" VALUE="INCREMENTAL_VALUE"/>Parameters
NAME (required)
- Name of the counter to increment
VALUE (required)
- Integer value to increment/decrement counter. A negative value decrements the counter.
Error Numbers
The possible values of
errno
include:
Value Description -501 Bad counter value.Example
This example creates a counter "fred" and performs two different counter operations on
fred
.
<SETCOUNTER NAME="fred" VALUE="100"/> <INCCOUNTER NAME="fred" VALUE="200"/> The value of Fred is <CSVAR NAME="Counters.fred"/> <!-- The value of Fred is 300 --> <INCCOUNTER NAME="fred" VALUE="-50"/> <br/> The value of Fred is <CSVAR NAME="Counters.fred"/> <!-- The value of Fred is 250 --> <INCCOUNTER NAME="fred" VALUE="-300"/> The value of Fred is <CSVAR NAME="Counters.fred"/> <!-- The value of Fred is -50 -->See Also
Home > Contents > Index > Oracle XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.