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 cre8able, Today, 03:20 PM
        0 responses
        1 view
        0 likes
        Last Post cre8able  
        Started by Fran888, 02-16-2024, 10:48 AM
        3 responses
        45 views
        0 likes
        Last Post Sam2515
        by Sam2515
         
        Started by martin70, 03-24-2023, 04:58 AM
        15 responses
        114 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by The_Sec, Today, 02:29 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by jeronymite, 04-12-2024, 04:26 PM
        2 responses
        31 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X