forum

Home / DeveloperSection / Forums / Multiple Conditions in If Statement or Splitting using C#

Multiple Conditions in If Statement or Splitting using C#

Anonymous User 2336 14-Oct-2013

when i am using if statements with multiple conditions, how are they managed in the compiler?

A) Will it ignore the second Statement, if the first statement is not fulfilled or vice versa?

If(time > 3.0 && hitEnabled)

B) Late Defintions are often recommended, so should i prefere to use one condition in if statements?

if(time > 3.0)

    if(hitEnabled)

Thanks!


c# c# 
Updated on 14-Oct-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By