# Operator

1. In computer programming and at the command line, an **operator** is an object that is capable of manipulating a value or operator. For example, in "1 + 2", the "1" and "2" are the operands and the plus symbol is the operator. Below is a listing of common operators found in programming languages with explanations and examples.

Operator | Alternative | Explanation | Examples |
---|---|---|---|

= |
Eq | Equals | a = b |

== |
Eq | Equals | a == b |

!= |
Ne | Not equal | a != b |

+ |
Plus | a + b | |

+= |
Addition | a += b | |

++ |
Increment | a++ | |

- |
Minus | a - b | |

-= |
Subtraction | a -= b | |

-- |
Decrement | a-- | |

/ |
Divide | a / b | |

* |
Times | a * b | |

> |
Gt | Greater than | a > b |

< |
Lt | Less than | a < b |

>= |
Ge | Greater than or equal to | a >= b |

<= |
Le | Less than or equal to | a <= b |

|| |
or | Boolean or | a || b |

&& |
and | Boolean and | a && b |

Tip: Booleans are also considered operators where AND, OR, and NOT can also be used in most programming languages.

2. An **op** is a person who controls an IRC channel. See the op page for further information about this term.

**Also see:** Arithmetic operator, Boolean, Conditional expression, Decrement, Exclamation mark, Increment, Op, Operand, Operator associatively, Operator precedence, Order of operations, Programming terms, Syntactic sugar, Ternary operator