by Derreck Dean (2 Submissions)
Category: Coding Standards
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
This is an extremely easy method of reversing the value of a Boolean value.
If you have ever done this:
IF someBoolean = TRUE THEN
someBoolean = FALSE
ELSE
someBoolean = TRUE
END IF
Here's an easier method:
someBoolean = NOT someBoolean.
That's it... vote if you like.
- Derreck