Open rdbell opened 6 years ago
Assume someValue = true...
someValue = true
These all evaluate to true:
true
if someValue
if !someValue
if someValue == true
if someValue == false
Is this expected behavior? How can I check if a bool is false without using an else statement?
bool
false
else
Assume
someValue = true
...These all evaluate to
true
:if someValue
if !someValue
if someValue == true
if someValue == false
Is this expected behavior? How can I check if a
bool
isfalse
without using anelse
statement?