Skip to content

Conditionals negation default

Conditionals negation inverts the conditional direction, which means a == will become a !=.

Mutation table

Original Mutated
== !=
!= ==
> <=
<= >
< >=
>= <

Examples

if a == b {
  // Do something
}
if a != b {
  // Do something
}