Jump to content
  • Advertisement

Archived

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

asdasd12345

Really stupid bool true false question

This topic is 5353 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
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!