Full Stack LAMP - MEAN Developer, Python developer. Certified Azure Developer. Freelance programmer/consultant/trainer.

The If-Not operator is used to convert a value from true to false, or from false to true. Similarly, if an operand evaluates to true, a logical “not” would cause it to evaluate to false. If an operand evaluates to false, its logical “not” equivalent would be true.

Syntax

if(-not(statement)){}

(OR)

if(!(statement)){}

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.