Search found 4 matches
- 15 Aug 2012 10:28
- Forum: DOS Batch Forum
- Topic: if 'x' and 'y' do 'z' - What am I doing wrong?
- Replies: 8
- Views: 5209
Re: if 'x' and 'y' do 'z' - What am I doing wrong?
:oops: set /p menu=Optie: if %menu% == 1 goto voorstatus :voorstatus cls echo ---- Status ---- if not defined ervaring set /a ervaring = 0 set /a level = 0 &for %%? in ( 0, 99, 249, 499, 749, 999, 1249, 1499, 1749, 1999, 2499, 2999, 3749 ) do if %ervaring% gtr %%~? ( set /a level += 1 ) goto st...
- 15 Aug 2012 09:42
- Forum: DOS Batch Forum
- Topic: if 'x' and 'y' do 'z' - What am I doing wrong?
- Replies: 8
- Views: 5209
Re: if 'x' and 'y' do 'z' - What am I doing wrong?
' Hey geertje, you've got a lot of redundant code in there set /p menu=Optie: if %menu% == 1 goto voorstatus :voorstatus cls echo ---- Status ---- if not defined ervaring set /a ervaring = 0 set /a level = -1 &for %%? in ( 1, 100, 250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2500, 3000, 3750 ) ...
- 15 Aug 2012 08:49
- Forum: DOS Batch Forum
- Topic: if 'x' and 'y' do 'z' - What am I doing wrong?
- Replies: 8
- Views: 5209
Re: if 'x' and 'y' do 'z' - What am I doing wrong?
Squashman wrote:if %ervaring% geq 0 IF %ervaring% lss 100 set level=1
Thank you very much, it worked

But I still don't get why you don't have to use the '&'...
- 15 Aug 2012 08:38
- Forum: DOS Batch Forum
- Topic: if 'x' and 'y' do 'z' - What am I doing wrong?
- Replies: 8
- Views: 5209
if 'x' and 'y' do 'z' - What am I doing wrong?
Hi guys, I can't seem to solve this problem on my own. Every time I run it and I press '1' and 'Enter' the cmd screen just disappears (Most of the times that happens when there is an error). I think the error is somewhere in here: if %ervaring% geq 0 & lss 100 set level=1 . What am I doing wrong...