Software Design/Make if condition positive

Checklist questions:
 * Would arranging  branches so that the condition is positive (like   instead of   make the code simpler?

All other things being equal with regard to the project's conventions about if-else branch arrangement, prefer instead of

Why
If there is a negation, readers of the code have to mentally apply it every time they glance through the code. That is, eliminating a negation helps to reduce the cognitive load.

If the boolean variable used in the conditional expression already has negation embedded into it, for example, if the variable is called, it might be better to convert it to a positive variable first to avoid both expression-level (i. e. using the negation operator) and semantic negation in the conditional expression.

Why not
Depending on the project's conventions regarding  branch arrangement and specifics of the particular   block, there might be reasons to arrange branches in a certain way that are more important than keeping the conditional expression positive, for example, keeping the first branch shorter. Other possibilities are listed here: Code organization conventions § Branch arrangement in  and   statements.

A negative condition in an  branch may also allow early exit from the function and thus reducing the nesting of the bulk of the function.

Related

 * Avoid double negation in boolean expressions
 * Minimize nesting of if statements