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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        131 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        106 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        88 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        107 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        87 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X