">
Domain Registration : Discount Domain Pricing : Website and Domain Hosting : Frontpage 2000 Hosting : Website Development and Promotion : Secure E-Commerce : Shopping Cart Software : Linux and Windows NT : Graphic Design : Free Email Services : Fast Servers : Low Cost!


RESOURCES




Often you want to compare a value of one variable with one of another variable, or the value of a variable against a literal value, for example the value in an if-statement.

Example for a comparison is if you want to compare the value of the day of week to "Sunday", you can do this by checking todaysDate == "Thursday".

Don't mix up '=' with '==', the first is an assignment, the second one is a comparison.

Comparisons
COMPARISON


x == y

x != y

x > y

x >= y

x < y

x <= y

x && y

x || y

!x

WHAT IT DOES


True if x and y are equal

True if x and y are not equal

True if x is greater than y

True if x is greater or equal to y

True if x is less than y

True if x is less or equal to y

True if x and y are true

True if x or y are true

True if x is false













Copyright © 1995-2003 Sidetrips™ Internet Services, Inc. All rights reserved.

Reproduction in whole or in part in any form or medium without express
written permission of Sidetrips Internet Services, Inc. is prohibited.

sidetrips.com™, hostserver.com™, registera.com™, htmlshop.com™,
and associated domains are trademarks of Sidetrips™ Internet Service, Inc.

Privacy Policy | Acceptable Use Policy | Terms of Service