# Tests: == != > >= < =<

### 5.1.2 Tests: == != > >= < =<

The usual comparison operators between numbers are examples of tests. In Xcas, they are the infixed operators:

==
  a==b tests the equality between a and b and returns 1 if a is equal to b and 0 otherwise.
  Look out !
  Note that a=b is not a boolean!!!! This form is used to state that the expression is an equality, perhaps with the intent to solve it. To test for equality, you need to use a==b, which is a boolean.
!=
  a!=b returns 1 if a and b are different and 0 otherwise.
>=
  a>=b returns 1 if a is greater than or equal to b and 0 otherwise.
>
  a>b returns 1 if a is strictly greater than b and 0 otherwise.
<=
  a<=b returns 1 if a is less than or equal to b and 0 otherwise.
<
  a<b returns 1 if a is strictly less than b and 0 otherwise.