addToVariable

session.addToVariable( String variable, int value ) (professional and enterprise editions only)
Description
Adds a value to a session variable. Session variables are generally stored as Strings, so it's normally more difficult than it should be to simply add a number to one. This method takes the name of the variable, which can either hold a String or Integer, and adds a number to it. The number added to it can be positive or negative.
Example
// Increments the session variable "PAGE_NUM" by one.
session.addToVariable( "PAGE_NUM", 1 );