Danke sehr, Matthais. Now that you mention it, the English help file
also says,
If you use any of the logical or modulus operators, you will need to
enclose the expression string in quotes.
I hadn't noticed that before. While Eman's suggestion of escaping the
special characters works, putting quotes around the entire expression
is simpler and makes it easier to read.
Since that is documented in the help file, I withdraw my "bug" report. :-)
- Rich
Matthias Tacke wrote:
> My german help of "set /?" says you've to put the expression in dbl quotes
> when using arithmetic operators. Even it isn't necessary in most cases,
> you've to use them for this to work.
>
> if 1==1 (
> set /a result ="2*(3+4)"
> )
|