0

I dont understand : (!( the not logical operator, please help

17th Dec 2016, 7:22 AM
Felix Ahrn
Felix Ahrn - avatar
1 Answer
+ 7
Apply ! to a condition, and it flips the result inside from true to false / false to true. Ex: !(5 > 7) would evaluate to true. 5 > 7 is false, so you get !(false), and "not false" is true. It makes more sense when combined with == so you get != (not equal to). Using ! on its own is rare.
17th Dec 2016, 7:26 AM
Tamra
Tamra - avatar