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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        51 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        142 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        275 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X