# unequal function

True when two values differ: the function form of !=.

## How to write it

### unequal(a, b)

**a**

A value. Takes an expression.

**b**

A value. Takes an expression.

## Examples

- $\displaystyle \operatorname{unequal}(1, 2) = \operatorname{true}$

  `unequal(1, 2)`

  In the solver, `unequal(1, 2)` gives `true`.

  [Open in the solver](https://hilberon.com/?q=unequal%281%2C%202%29)

## Related functions

- [xor](https://hilberon.com/library/xor)

  True when an odd number of conditions are true.
- [truth_table](https://hilberon.com/library/truth_table)

  The truth table of a condition: a row for each choice of values.
- [boolean_minimize](https://hilberon.com/library/boolean_minimize)

  A shortest equivalent form of a condition.
- [satisfiability_instances](https://hilberon.com/library/satisfiability_instances)

  The assignments of its variables that make a condition true.
- [conflicting_rules](https://hilberon.com/library/conflicting_rules)

  Every set of rules that cannot hold together, each a list of the rules it needs; \[\] when all can hold.
- [satisfiability_count](https://hilberon.com/library/satisfiability_count)

  How many assignments of its variables make a condition true.

---
Source: https://hilberon.com/library/unequal
