11.1.89.7       <SETVAL> =%ROTATEMINUS

Description:   Decrements (decreases) tag by specified amount, percentage , tag value or script variable until OUTPLO (output low span) reached then resets counter to OUTPHI (output high span) minus the delta of the last increment above OutpLo. It carries over and difference between OutpLo and the last increment calculation. Repeats continuously. Similar to LOOPMINUS, but when OutpLo reached, next value is exactly is not necessarily equal to OutpHi.  This makes for smother animation of rotation if the increment is not an even multiple of the output span.

Syntax:         <SETVAL>tagname=%ROTATEMINUS arguementr            

Arguments:    number or tagname

Examples:     

 

<SETVAL>counter=%ROTATEMINUS 1                # decrements tag named counter by 1

# until OutpLo reached

# then resets counter to OutpHi

# minus whatever remainder there was in the

# decrement below OutpLO. Repeats.

<SETVAL>tag2=%ROTATEMINUS 1%                    # decrements tag2  by 1 percent of output

# span until OutpLO reached

# then resets counter to OutpHI

# minus whatever remainder there was in the

# decrement below OutpHi. Repeats.

<SETVAL>tag2=%ROTATEMINUS @tag1           #  decrements tag2  by  value of tag1

# until OutpLO reached

# then resets counter to OutpHI

# minus whatever remainder there was in the

# decrement below OutpLO. Repeats.