if %variable%==(condition 1);(condition 2) echo (sentence here)
How can i put two conditions in one line? Does the ; work as space?
I don't wanna do like this:
if %variable%==(condition 1) echo (sentence here)
if %variable%==(condition 2) echo (sentence here)
Search found 3 matches
- 21 Aug 2015 07:06
- Forum: DOS Batch Forum
- Topic: Help with the if command.
- Replies: 1
- Views: 1418
- 20 Aug 2015 16:14
- Forum: DOS Batch Forum
- Topic: Gimme an help with this simple thing please :P
- Replies: 2
- Views: 1690
Re: Gimme an help with this simple thing please :P
@echo off title Generatore di amore! - Lorenzo Marini - Versione 0.1 :start echo ---------------------------------------------------------------------------- echo Il generatore di amore ti da tutto l'amore di cui hai bisogno, o quasi... echo ---------------------------------------------------------...
- 20 Aug 2015 12:19
- Forum: DOS Batch Forum
- Topic: Gimme an help with this simple thing please :P
- Replies: 2
- Views: 1690
Gimme an help with this simple thing please :P
Hi I'm new to batch, I want to make a batch file that makes you decide how many times "I love you" is repeated on the screen, so, what I wrote is: @echo off :start set /p NUMEROSCRITTO=How many time you want me to say I love you? (put a number here) echo. set /a NUMERODIVOLTE=%NUMEROSCRITT...