Batch. How should i use GEQ and LEQ in a if-and statement?Batch file help (for statement)Batch File IF...
How Internet Communication Works on a Coaxial Cable
What kind of hardware implements Fourier transform?
Does Windows 10's telemetry include sending *.doc files if Word crashed?
Jumping Numbers
Does my logo design convey the right feelings for a University Student's Council?
How do creatures spend Hit Dice after a short rest (if they can do so)?
Why would the Pakistan airspace closure cancel flights not headed to Pakistan itself?
Unwarranted claim of higher degree of accuracy in zircon geochronology
Overfitting and Underfitting
Can polymorphing monsters spam their ability to effectively give themselves a massive health pool?
Quenching swords in dragon blood; why?
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
Explain the objections to these measures against human trafficking
What is this metal M-shaped device for?
Planet at the end of Solo: A Star Wars Story
Closed form for these polynomials?
Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?
What's the most convenient time of year in the USA to end the world?
If I delete my router's history can my ISP still provide it to my parents?
What makes the Forgotten Realms "forgotten"?
Avoiding morning and evening handshakes
Why avoid shared user accounts?
Does the "particle exchange" operator have any validity?
Knowing when to use pictures over words
Batch. How should i use GEQ and LEQ in a if-and statement?
Batch file help (for statement)Batch File IF Statement Time TakenBatch File, PING, errorlevel and > null what do they do?Can't find Error in this syntax (If statement in forfiles batch)How to use `%` in a batch fileIF statement in batch file not working properlyBatch to find all specific foldersCannot use dot before redirect to file in batch fileRename files with batch commands - routineTrying to use wildcard in IF statement
so I've tryed to make a simple program, so I can simulate a D20 dice roll and send a messenge (Getroffen), if the rolled number is between 10 and 15. But it just gives me a "Daneben" when the number is greater than 15. I would like to get a "Daneben" when it's less than 10 too, but that's not the case. What should I do instead?
@echo off
:run
cls
echo Zahl zwischen 1 und 20
call :roll20
set zahl=%roll%
echo %zahl%
if %zahl% GEQ 10 if %zahl% LEQ 15 (echo Getroffen) ELSE (echo Daneben)
pause >NUL
goto run
:roll20
set roll=%random%
if %roll% GTR 20 goto roll20
if %roll% LSS 1 goto roll20
batch cmd.exe
add a comment |
so I've tryed to make a simple program, so I can simulate a D20 dice roll and send a messenge (Getroffen), if the rolled number is between 10 and 15. But it just gives me a "Daneben" when the number is greater than 15. I would like to get a "Daneben" when it's less than 10 too, but that's not the case. What should I do instead?
@echo off
:run
cls
echo Zahl zwischen 1 und 20
call :roll20
set zahl=%roll%
echo %zahl%
if %zahl% GEQ 10 if %zahl% LEQ 15 (echo Getroffen) ELSE (echo Daneben)
pause >NUL
goto run
:roll20
set roll=%random%
if %roll% GTR 20 goto roll20
if %roll% LSS 1 goto roll20
batch cmd.exe
add a comment |
so I've tryed to make a simple program, so I can simulate a D20 dice roll and send a messenge (Getroffen), if the rolled number is between 10 and 15. But it just gives me a "Daneben" when the number is greater than 15. I would like to get a "Daneben" when it's less than 10 too, but that's not the case. What should I do instead?
@echo off
:run
cls
echo Zahl zwischen 1 und 20
call :roll20
set zahl=%roll%
echo %zahl%
if %zahl% GEQ 10 if %zahl% LEQ 15 (echo Getroffen) ELSE (echo Daneben)
pause >NUL
goto run
:roll20
set roll=%random%
if %roll% GTR 20 goto roll20
if %roll% LSS 1 goto roll20
batch cmd.exe
so I've tryed to make a simple program, so I can simulate a D20 dice roll and send a messenge (Getroffen), if the rolled number is between 10 and 15. But it just gives me a "Daneben" when the number is greater than 15. I would like to get a "Daneben" when it's less than 10 too, but that's not the case. What should I do instead?
@echo off
:run
cls
echo Zahl zwischen 1 und 20
call :roll20
set zahl=%roll%
echo %zahl%
if %zahl% GEQ 10 if %zahl% LEQ 15 (echo Getroffen) ELSE (echo Daneben)
pause >NUL
goto run
:roll20
set roll=%random%
if %roll% GTR 20 goto roll20
if %roll% LSS 1 goto roll20
batch cmd.exe
batch cmd.exe
asked 12 mins ago
Daniel GötterDaniel Götter
113
113
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1410817%2fbatch-how-should-i-use-geq-and-leq-in-a-if-and-statement%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1410817%2fbatch-how-should-i-use-geq-and-leq-in-a-if-and-statement%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown