I'm know how to check if two variable are the same but not sure how to check if three or more variables are equal to the same. The below does not compile if anyone can help me please.
Thanks
Matthew


Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Nov 12, 2012, 12:24 AM EST
Debug,WriteLine(row1== row2 && row2 == row3);
Similar expressions can be constructed to check whether more than three values are the same.
Matt Higgins32 reputationPosted Nov 12, 2012, 1:10 AM EST
Thanks should do the trick!!
Also when do I have to click Upload Source Code: and then browse for a file to upload code every time - whenever I copy and paste code into IE, it always corrupts it.
VulpesRank #55 · 29.2K reputationPosted Nov 12, 2012, 2:22 AM EST
Personally, I always use Google Chrome when dealing with this site and never upload code.
I always copy and paste it as pure text - usually into notepad first so I have a backup if it gets lost in the ether when I click the 'Post' button :)