Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What is the difference between

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Baruch
    replied
    And a better way is:
    if (conditionA && conditionB)

    Baruch

    Leave a comment:


  • NinjaTrader_Tim
    replied
    Hi kaywai,

    The result in function is identical.

    Using && makes for a more efficient running code, while using nested if's may provide you more flexibility.

    Leave a comment:


  • kaywai
    started a topic What is the difference between

    What is the difference between

    if ((conditionA == true) && (conditionB == true))
    {
    }

    AND

    if (conditionA == true)
    {
    if (conditionB == true)
    {
    }
    }

Latest Posts

Collapse

Topics Statistics Last Post
Started by mic414, Yesterday, 11:52 PM
0 responses
1 view
0 likes
Last Post mic414
by mic414
 
Started by fmcap, Yesterday, 10:49 PM
0 responses
2 views
0 likes
Last Post fmcap
by fmcap
 
Started by iradielt, Yesterday, 10:06 PM
0 responses
2 views
0 likes
Last Post iradielt  
Started by gbajaj, Yesterday, 03:35 PM
2 responses
11 views
0 likes
Last Post gbajaj
by gbajaj
 
Started by space_trader, Yesterday, 03:19 PM
2 responses
8 views
0 likes
Last Post space_trader  
Working...
X