Binary expressions use one operator to operate on two operands. Binary operators and sample expressions are as follows:

Operator | Binary Operator | Example |
---|---|---|

multiply | * | x * y |

divide | / | x / y |

add | + | x + y |

subtract | - | x - y |

less than | < | x < y |

greater than | > | x > y |

less than or equal to | <= | x <= y |

greater than or equal to | >= | x >= y |

is equal to | == | x == y |

not equal to | != | x != y |

logical and | && | x && y |

logical or | || | x || y |

assignment | = | x = y |

divide into | /= | x /= y |

multiply into | *= | x *= y |

add into | += | x += y |

subtract into | -= | x -= y |