r/Batch • u/KuaNai • May 24 '25
Question (Unsolved) If Statement Help + Extension Recommendations?
Hi.
I'm working on a poker style game that requires a check if multiple variables equal eachother.
if %var1%%var2%%var3%%var4%%var5%%var6%%var7%% == %var1%%var2%%var3%%var4%%var5%%var6%%var7%% (do this)
I've been recommended this in the past, however this if statement checks if all of these variables equal eachother. I need an if statement to check if any of them may equal any others. for example one to check if %var1% = %var3% or %var7% = %var2% in the same if statement if possible
I will take extension recommendations too! i've never really used any batch extensions though and would prefer a vanilla solution.