Not keyword vs = False when checking for false boolean condition

vb.net

Solution

Definitely, use "Not". And for the alternately, use "If (myboolean)" instead of "If (myboolean = true)"

The works best if you give the boolean a readable name:

 if (node.HasChildren)

Problem

When I'm using an If statement and I want to check if a boolean is false should I use the "Not" keyword or just = false, like so ``` If (Not myboolean) then ``` vs ``` If (myboolean = False) then ``` Which is better practice and more readable?

Original source

Related problems