Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaScript - "OR"

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

    NinjaScript - "OR"

    Hello,

    is it possible in NinjaScript to code "OR" instead "&&" ("AND").

    Couldn´t find it.

    Thanks
    Tony

    #2
    tonynt,

    Yes, you can specify OR by using ||

    if (myCondtion1 || myCondition2)
    {
    doSomething;
    }

    This operator will work as a switch that will look for either condition to be true.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jon17, Today, 04:33 PM
    0 responses
    1 view
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    4 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Started by alifarahani, Today, 09:40 AM
    6 responses
    41 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Working...
    X