This topic is now archived and is closed to further replies.

Really stupid bool true false question

This topic is 5047 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

A variable is either true or false, and I want it to be false if its true and true if its false. How do I do this? Can I write var=-var; like with integers? Or do I have to write if (var==true) { var==false; } else { var==true; } THis is dumb I understand, but understand im dumb.

Share this post

Link to post
Share on other sites