# Operators

Nushell supports the following operators:

Operator Description
+ add
- subtract
* multiply
/ divide
** exponentiation (power)
mod modulo
== equal
!= not equal
< less than
<= less than or equal
> greater than
>= greater than or equal
=~ string contains another
!~ string does not contain another
in value in list
not-in value not in list
&& and two Boolean values
|| or two Boolean values

Parentheses can be used for grouping to specify evaluation order. Operators can only be used in "math mode". An expression is in math mode if it begins with =. Commands that take a boolean expression, such as where, keep while, keep until, skip while, and skip until, are automatically evaluated in math mode.

For example, let a = 2; let b = 3; = $a * $b outputs 6.