If you need to test a variable for multiple values, you could use the IF statement:

                              if /i "%ComputerName%" EQU "ComputerName1" goto found                              if /i "%ComputerName%" EQU "ComputerName2" goto found                              if /i "%ComputerName%" EQU "ComputerName3" goto found                              if /i "%ComputerName%" EQU "ComputerName4" goto found                              if /i "%ComputerName%" EQU "ComputerName5" goto found                              goto notfound                                           OR                              for %%f in (ComputerName1 ComputerName2 ComputerName3 ComputerName4 ComputerName5) do (                               if /i "%computername%" EQU "%%f" goto found                              )                              goto notfound                                           OR                              for %%f in ("ComputerName1" "ComputerName2" "ComputerName3" "ComputerName4" "ComputerName5") do (                               if /i "%computername%" EQU %%f goto found                              )                              goto notfound                                           OR                              If you have a file that contains the values you are searching for, one value per line:                              for /f "Tokens=*" %%f in ('@echo %ComputerName%^|findstr /i /g:FileName.txt') do goto found                              goto notfound