Comparing two numbers in DOS doesn't work

@echo off
set f = 100
set g = 100
IF f EQU g @echo yes


doing nothing. What is the problem? It looks like the simplest things thanks in advance



source to share

1 answer

You need to do the following:

    @echo off
    set f=100
    set g=100
    if %f%==%g% echo yes




All Articles