How reverse a boolean with one line of code.
VB.net
MyVar = Not MyVar
PHP
$myvar = !$myvar;
C#
myvar = !myvar;
Python
my_var = not my_var
Go
MyVar = !MyVar
Javascript
myvar = !myvar;
Swift
MyBool = !MyBool;
How reverse a boolean with one line of code.
MyVar = Not MyVar
$myvar = !$myvar;
myvar = !myvar;
my_var = not my_var
MyVar = !MyVar
myvar = !myvar;
MyBool = !MyBool;