1. Computing

Discuss in my forum

Comparison Operators

By , About.com Guide

Definition: A comparison operator compares one value to another. It can compare it in four different ways:

== - Equal to (also sometimes written as just = )
!= - Not equal to
> - Greater than (meaning the value on the left is larger then the one on the right)
< - Less than (meaning the value on the left is smaller than the one on the right)

Examples:

Some examples of comparison operators:
 10 > 8 
 10 < 12 
 X = 5 
 y != 6 
  1. About.com
  2. Computing
  3. PHP / MySQL
  4. Programing Glossary
  5. Comparison Operator - PHP Comparison - PHP Operator

©2013 About.com. All rights reserved.