Bool to other value bool

Hello;

I curnently cant find the answer nowhere to this:
1
2
3
bool a;
a = true;
a = (!a) //will the a be false now? or whats the simple way to do it insted of 

1
2
3
4
5
6
7
8
9
10
bool a;
a = true;
if(a = true)
{
a = false;
}
else(a = false)
{
a = true;
}
a = !a;
changes value from true to false and vice verse.
Last edited on
thx.
Topic archived. No new replies allowed.