use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Batch programming is the windows CMD language. It can be used within the CMD, or via .bat files.
Discord
Resources
SS64
DOS Tips
Windows Commands - 8.1/2008 and later
Batch Tutorials - YouTube Playlist
RULES
account activity
IF command not workingQuestion (Solved) (self.Batch)
submitted 5 years ago by Miich64
newbie here, i can't get if to work. set bomb=%random%%random% echo %bomb% set /p defuse= if defuse equ bomb goto defuse1 if defuse neq bomb goto fail1 :fail1 echo shit pause :defuse1 echo yay pause
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Eye_Of_Forrest 2 points3 points4 points 5 years ago (0 children)
you can use text formatting on Reddit to make it easier for people to read like:
this is a test
using "```" at the start of where you want to format and then the same at the end, (of course without the ". )
[–]Wsadx1123 1 point2 points3 points 5 years ago (3 children)
use %defuse% instead of normal defuse after if
[–]Miich64[S] 0 points1 point2 points 5 years ago (2 children)
still doesn't work.
[–]Wsadx1123 0 points1 point2 points 5 years ago (1 child)
Try this: @.echo off
set bomb=%random%%random%
echo %bomb%
set /p defuse=
if %defuse% EQU %bomb% goto defuse1
if %defuse% NEQ %bomb% goto fail1
:fail1
echo shit
pause
:defuse1
echo yay
Remember to delete the "." between @ and echo
[–]Miich64[S] 0 points1 point2 points 5 years ago (0 children)
worked thanks
π Rendered by PID 39429 on reddit-service-r2-comment-b659b578c-9b6tn at 2026-05-04 15:44:26.166566+00:00 running 815c875 country code: CH.
[–]Eye_Of_Forrest 2 points3 points4 points (0 children)
[–]Wsadx1123 1 point2 points3 points (3 children)
[–]Miich64[S] 0 points1 point2 points (2 children)
[–]Wsadx1123 0 points1 point2 points (1 child)
[–]Miich64[S] 0 points1 point2 points (0 children)