Users Pricing

forum

Home Forums Multiple Conditions in If Statement or Splitting using C# – MindStick

Multiple Conditions in If Statement or Splitting using C#

Anonymous User 2887 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!


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md