@DEC

Print Topic  Return to Overview  Previous Topic  Next Topic 

@DEC[string] : Returns :

 

-1 if string is empty
otherwise the same value as @EVAL[string - 1]

 

If string is the name of an environment variable, its value is used whether or not it is preceded by a percent sign % without modifying the value of the variable. To actually decrement the value of the variable var use:

 

set var=%@dec[%var]

Topic "f_dec.htm" last edited 5/8/2008. ©2008  JP Software, Inc.
Keywords: @DEC,@EVAL