Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help C# need help
#1
hey whats up I have a little question:
is this
Code:
if (File.Exists("blablabla"))
                {
                    if (File.Exists("blobloblo"))
                    {
                        //do some serious shit
                    }
                }
the same as this?
Code:
if (File.Exists("blablabla") && (File.Exists("blobloblo")))
                {
                    //do some serious shit
                }
thank you Wink
Reply

#2
Yes although you don't need those brackets on the second one.

Code:
if(File.Exists("abc") && File.Exists("123"))
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#3
(07-17-2012, 17:36)master131 Wrote: Yes although you don't need those brackets on the second one.

Code:
if(File.Exists("abc") && File.Exists("123"))

ok thanks
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.