Im currently creating a lottery but there's something wrong about the code i just can't spot the sollution. No matter what i write in the size of people attending it only gives me the opportunity to chose between the numbers 1-2. Here's the code:
@echo off
set /p ipa=Select a size of people attending 2-30:
if %ipa%==2 goto START 2;
if %ipa%==3 goto START 3;
if %ipa%==4 goto START 4;
if %ipa%==5 goto START 5;
if %ipa%==6 goto START 6;
if %ipa%==7 goto START 7;
if %ipa%==8 goto START 8;
if %ipa%==9 goto START 9;
if %ipa%==10 goto START 10;
if %ipa%==11 goto START 11;
if %ipa%==12 goto START 12;
if %ipa%==13 goto START 13;
if %ipa%==14 goto START 14;
if %ipa%==15 goto START 15;
if %ipa%==16 goto START 16;
if %ipa%==17 goto START 17;
if %ipa%==18 goto START 18;
if %ipa%==19 goto START 19;
if %ipa%==20 goto START 20;
if %ipa%==21 goto START 21;
if %ipa%==22 goto START 22;
if %ipa%==23 goto START 23;
if %ipa%==24 goto START 24;
if %ipa%==25 goto START 25;
if %ipa%==26 goto START 26;
if %ipa%==27 goto START 27;
if %ipa%==28 goto START 28;
if %ipa%==29 goto START 29;
if %ipa%==30 goto START 30;
:START 2
set /p input=Select a number between 1-2:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
echo %input% is Not Valid!
pause;
:START 3
set /p input=Select a number between 1-3:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
echo %input% is Not Valid!
pause;
:START 4
set /p input=Select a number between 1-4:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
if %input%==4 goto You lost;
echo %input% is Not Valid!
pause;
echo %input% is Not Valid!
:START 5
set /p input=Select a number between 1-5:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
if %input%==4 goto You lost;
if %input%==5 goto You lost;
pause;
echo %input% is Not Valid!
:START 6
set /p input=Select a number between 1-6:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
if %input%==4 goto You lost;
if %input%==5 goto You lost;
if %input%==6 goto You lost;
pause;
echo %input% is Not Valid!
:START 7
set /p input=Select a number between 1-7:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
if %input%==4 goto You lost;
if %input%==5 goto You lost;
if %input%==6 goto You lost;
if %input%==7 goto You lost;
pause;
echo %input% is Not Valid!
:START 8
set /p input=Select a number between 1-8:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
if %input%==4 goto You lost;
if %input%==5 goto You lost;
if %input%==6 goto You lost;
if %input%==7 goto You lost;
if %input%==8 goto You lost;
pause;
echo %input% is Not Valid!
:START 9
set /p input=Select a number between 1-9:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
if %input%==4 goto You lost;
if %input%==5 goto You lost;
if %input%==6 goto You lost;
if %input%==7 goto You lost;
if %input%==8 goto You lost;
if %input%==9 goto You lost;
pause;
echo %input% is Not Valid!
: PRIZE
echo YOU WON!
pause;
:You lost
echo That wasn't the right number. Try again!
goto START 5
pause;
@echo off
set /p ipa=Select a size of people attending 2-30:
if %ipa%==2 goto START 2;
if %ipa%==3 goto START 3;
if %ipa%==4 goto START 4;
if %ipa%==5 goto START 5;
if %ipa%==6 goto START 6;
if %ipa%==7 goto START 7;
if %ipa%==8 goto START 8;
if %ipa%==9 goto START 9;
if %ipa%==10 goto START 10;
if %ipa%==11 goto START 11;
if %ipa%==12 goto START 12;
if %ipa%==13 goto START 13;
if %ipa%==14 goto START 14;
if %ipa%==15 goto START 15;
if %ipa%==16 goto START 16;
if %ipa%==17 goto START 17;
if %ipa%==18 goto START 18;
if %ipa%==19 goto START 19;
if %ipa%==20 goto START 20;
if %ipa%==21 goto START 21;
if %ipa%==22 goto START 22;
if %ipa%==23 goto START 23;
if %ipa%==24 goto START 24;
if %ipa%==25 goto START 25;
if %ipa%==26 goto START 26;
if %ipa%==27 goto START 27;
if %ipa%==28 goto START 28;
if %ipa%==29 goto START 29;
if %ipa%==30 goto START 30;
:START 2
set /p input=Select a number between 1-2:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
echo %input% is Not Valid!
pause;
:START 3
set /p input=Select a number between 1-3:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
echo %input% is Not Valid!
pause;
:START 4
set /p input=Select a number between 1-4:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
if %input%==4 goto You lost;
echo %input% is Not Valid!
pause;
echo %input% is Not Valid!
:START 5
set /p input=Select a number between 1-5:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
if %input%==4 goto You lost;
if %input%==5 goto You lost;
pause;
echo %input% is Not Valid!
:START 6
set /p input=Select a number between 1-6:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
if %input%==4 goto You lost;
if %input%==5 goto You lost;
if %input%==6 goto You lost;
pause;
echo %input% is Not Valid!
:START 7
set /p input=Select a number between 1-7:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
if %input%==4 goto You lost;
if %input%==5 goto You lost;
if %input%==6 goto You lost;
if %input%==7 goto You lost;
pause;
echo %input% is Not Valid!
:START 8
set /p input=Select a number between 1-8:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
if %input%==4 goto You lost;
if %input%==5 goto You lost;
if %input%==6 goto You lost;
if %input%==7 goto You lost;
if %input%==8 goto You lost;
pause;
echo %input% is Not Valid!
:START 9
set /p input=Select a number between 1-9:
if %input%==1 goto You lost;
if %input%==2 goto PRIZE
if %input%==3 goto You lost;
if %input%==4 goto You lost;
if %input%==5 goto You lost;
if %input%==6 goto You lost;
if %input%==7 goto You lost;
if %input%==8 goto You lost;
if %input%==9 goto You lost;
pause;
echo %input% is Not Valid!
: PRIZE
echo YOU WON!
pause;
:You lost
echo That wasn't the right number. Try again!
goto START 5
pause;