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.
 
errno
The possible values of
errnoinclude:
 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 > ![]()
FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.