1.

Solve : multiple variables?

Answer»

how can i make a cirtan action HAPPEN when 6 driffrent variables equal the same (0)If they all need to be zero, then you can simply sum them and check that the RESULT is still zero
Set /A TOTAL=%var1% + %var2% + %var3% + %VAR4% + %var5% + %var6%
Grahamset "flag="
for %%a in (%v1% %v2% %v3% %v4% %v5% %v6%) do if %%a neq 0 set flag=1
if not defined flag (
rem Your COMMAND here when they all equal to 0
)



Discussion

No Comment Found