![]() |
| ||
| Inverting value of boolean variable? Hi guys, I am using boolean variables as flags in a program and i want to be able to invert the value. for example if the current value is true, then it must be changed to false; doesn't matter if i don't know what the current value is. |
| ||
| Re: Inverting value of boolean variable? Quote:
boolean a = true; |
| ||
| Re: Inverting value of boolean variable? Excellent, thank you very much! |
| All times are GMT -4. The time now is 2:41 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC