Documentation @INC

In the Help file for @INC...

Should
Code:
set start=5
set result=%inc[start]
echo %result

not be this;
Code:
set start=5
set result=%@inc[start]
echo %result

Seems to be missing an @

Joe
 
May 29, 2008
572
4
Groton, CT
I think it should really be
Code:
set result=%@inc[%start]
It looks like it's missing a % as well as an @.
 
Well, according to the line;
Code:
If string is the name of an environment variable, its value is used whether or not it is preceded by a percent mark % without modifying the value of the variable. To actually increment the value of the variable var use

I think it should be just start , not %start.

Joe
 
May 20, 2008
12,175
133
Syracuse, NY, USA
Well, according to the line;
Code:
If string is the name of an environment variable, its value is used whether or not it is preceded by a percent mark % without modifying the value of the variable. To actually increment the value of the variable var use

I think it should be just start , not %start.

Joe
Either works.