12.4.35.2   %PLUS

Increment tag by specified amount, percentage, tag value or script variable

Examples:

# Tcl

SETVAL {counter=%PLUS 1} # increments tag named counter by 1.

SETVAL {tag2=%PLUS 1%}   # increments tag2 by 1 % of output span.

SETVAL "tag2=%PLUS $var" # increments tag2 by value of variable
                         # named var. double quotes evaluates var

 

SETVAL {tag2=%PLUS @tag1} #  increments tag2  by  value of tag1

# equivalent to the expression 

SETVAL tag2=[expr [GETVAL tag1]+[GETVAL tag2] ]

 

# Tcl

SETVAL "tag2=%PLUS $x" 

# increments tag2 by value of script

# variable named x

# until OutpHi reached.

# double quote forces evaluation

# of $x.

 

Rem VB Script

Dim x

SETVAL "tag2=%PLUS " & Cstr(x) 

 

// JScript

var x, tagnvalue

tagnvalue = "tag2=%PLUS ";

tagnvalue += x;

SETVAL(tagnvalue);