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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        670 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X