By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!I know. But I always use them anyway. I've never seen them hurt (before).I don't think you need the %'s inside of EVAL.
Code:set n=0 echo %@eval[(n & 1) + n] 0 set n=1 echo %@eval[(n & 1) + n] 2
I have always used "%" and probably will continue. This problem is as old as the hills. The help could call some attention to it. How do you fix this one?Scott is right - don't use % unless you are referencing an internal variables or function. In you example, part of the line is being expanded by the parser and part by @eval.
& same as AND
I have always used "%" and probably will continue. This problem is as old as the hills. The help could call some attention to it. How do you fix this one?