Solved How do I check if 5 variable are equal to each other?

February 22, 2017 at 15:08:53
Specs: Windows 64
I am creating a poker game and I need to be able to check if there are 5 of the same suit on the table.

See More: How do I check if 5 variable are equal to each other?

Report •

#1
February 23, 2017 at 02:28:51
✔ Best Answer
::======  script starts here  ===============
:: 
:: BBEGIN.bat  2017-02-23 17:18:19.09
@echo off & setLocal enableDELAYedeXpansioN

:: set your vars; let's call them V1 thru V5
set V1=club
set V2=club
set V3=club
set V4=club
set V5=club

if '!V1!' equ '!V2!' if '!V1!' equ '!V3!' if '!V1!' equ '!V4!'  if '!V1!' equ '!V5!' echo YEP


goto :eof
::======  script ends here  =================








=====================

M2 Get custom script or take private lessons


Report •

#2
February 23, 2017 at 06:04:36
Thanks Mechanix2Go!! I could not figure out for the life of me how to nest if statements.

Report •
Related Solutions


Ask Question