Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IF Statements

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

    IF Statements

    Hi,

    could someone help me i've been tying ot clarify what this statement does.
    its in a indicator i received and i am familiar wit hif statements but it cant understand this one;

    I dont understand what the ! does, and because there is no criteria like "if(myint > 50)" does this mean it automatically amuses myint = true?



    private bool myint = false;

    if(!myint)

    {do this}

    else
    {do this}


    thanks you your help in adavance

    #2
    ! means not

    !false = true

    Comment


      #3
      thanks for the help, its these little things that are the the hardest to find confirmation on

      Comment


        #4
        useful resource

        Microsoft have a useful reference here with lots of help and tips - NOT ninja script but especially with NT7 going over to Net 3.0 it will be very useful for the stuff that can't be supported .

        I would also recommend a book about C# eg Sam's learning C#.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        129 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        74 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        116 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        110 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        89 views
        0 likes
        Last Post CarlTrading  
        Working...
        X