First of all, sorry for my poor english - i'm from europe...
My question refers to the !(is not) operator.
During the C#-101 lesson about arrays Nelson is using it in the following context:
Code:
        bool hasEnteredMoney = false;

        while(!hasEnteredMoney)
        {
           .......
        }
He explains that the while(!hasEnteredMoney) loop is the equivalent to (has entered Money == false).
Now, i'm a little bit confused because the statement (!hasEnteredMoney) suggests that (hasEnteredMoney = false) is not(!) true - which is false(double negation)...
Whereas (hasEnteredMoney == false) is checking if the values of the two operands are equal - which is true because hasEnteredMoney is set to false
I hope i made myself clear enough and somebody out there can solve my dilemma...
Thank you very much in advance for answering my rookie-question!