# Operators

Operators fall into the following groups:

## Boolean

- A or B (logical inclusive or)
- A and B (logical and)
- A xor B (logical exclusive or)

## Equality

- A eq B (equal)
- A ne B (not equal)

## Comparison

A gt B (greater than)

A lt B (less than)

A ge B (greater than or equal to)

A le B (less than or equal to)

## Shift

- A >> B (shift right by B bits)
- A << B (shift left by B bits)

## Arithmetic

- A + B (add)
- A - B (subtract) + A * B (multiply)
- A / B (divide or modulo)
- A % B (remainder)

## Unary

- notA (logical not)
- -A (negate)
- +A (identity)
- A (identity)

**NOTE:** The identity operator is included for completeness.