Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 40,786 of 42,547    |
|    foxidrive to Gary Segal    |
|    Re: IF > 0    |
|    14 Nov 13 02:43:18    |
      From: foxidrive@server.invalid              On 14/11/2013 02:32, Gary Segal wrote:       > Hi Guys       > Does anyone knows what is the proper syntax for IF?       >       > here is my logic:       > Set /a WIL# = 000001              That creates a variable called "%wil# %" and set it to " 00001" without the       quotes.              > ECHO %WIL#%       >       > the logic below will work either way if WIL# > 0 or = 0              The logic below isn't using WIL#              > IF NOT CHA# == 0 (Do something)       >       > what is the correct syntax?       > I need it work like this - IF CHA# > 0 (Do something)              if %cha#% GTR 0 echo make my day              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca