12.4.35.4   %LOOPPLUS

Increment tag by specified amount, percentage, tag value or script variable until OutpHi (output high span) reached then resets counter to OutpLo (output low span). Repeats . Similar to RotatePlus, but when OutpHi is reached, the next value is exactly OutpLo.

Examples:

#Tcl

SETVAL {counter=%LOOPPLUS 1} 

# increments tag named counter by 1

# until OutpHi  reached

# then resets counter to OutpLo.

# Repeats.

 

SETVAL {tag2=%LOOPPLUS 1%}# increments tag2 by 1 % of output

# span until  OutpHi reached

# then resets counter to OutpLo.

# Repeats.

 

SETVAL {tag2=%LOOPPLUS @tag1}

# increments tag2 by  value of tag1

# until OutpHi reached

# then resets counter to OutpLo.

# Repeats.

 

# Tcl

SETVAL "tag2=%LOOPPLUS $x" 

# increments tag2 by value of script

# variable named x

# until OutpHi reached then

# resets counter to OutpLo.

# Repeats.

# double quote forces evaluation

# of $x.

 

Rem VB Script

Dim x

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

 

// JScript

var x, tagnvalue

tagnvalue = "tag2=%LOOPPLUS ";

tagnvalue += x;

SETVAL(tagnvalue);