Click here!
 

Upload    Contact    Home
 


R E S O U R C E S

HTMLStuff:

 
 
Home
Artist
Designer
Webmaster
Programmer
What's New
* Resources
 

 

 

JavaScript Tutorial Comparison and Logical Operators

Comparison Operators
Operator Description 1.3 Example
== Equal to. This will try to convert operands to similar types and compare if they are of different types.   push for example
!= Not equal to. This will try to convert operands to similar types and compare if they are of different types.   push for example
=== Strict equal to. This will return true only if the operands' types are the same and their values are equal to each other. x push for example
!== Strict not equal to. This will return true if the operands' types are not the same or their values are not equal to each other. x push for example
> Greater than. JavaScript will try and convert to similar types for the comparison.   push for example
>= Greater than or equal to. JavaScript will try and convert to similar types for the comparison.   push for example
< Less than. JavaScript will try and convert to similar types for the comparison.   push for example
<= Less than or equal to. JavaScript will try and convert to similar types for the comparison.   push for example
Logic Operators
&& Logical AND. Returns true if both operands are true.   push for example
|| Logical OR. Returns true if either or both operands are true.   push for example
! Logical NOT. Returns the opposite Boolean value for the operand.   push for example
Note: The comparison operators that are marked with an "x" are from JavaScript 1.3 and may not be implemented with your browser.

Head on to:
JavaScript Escape Characters
JavaScript Comparison and Logic Operators
JavaScript Event Listing
Pop-Up Window Attributes


Back to Tutorial Menu
Back to Programmer Main Page
Back To HTML Stuff Main Page

 

  News   Contact   Advertise   CD ROM   Search   Upload   Help   Home

Copyright © 2000 Tucows.Com Inc.
TUCOWS.Com Inc. has no liability for any content or goods on the TUCOWS site or the Internet, except as set forth in the terms and conditions and privacy statement.