About us Privacy Disclaimer Contact us
FAQ Help Advertising Feedback
Home Sitemap Search Donate us

  Home > Computer & I'net > Operators...

   Browse by title articles:
   What is hot:

Escape Characters

Operators

Print/Echo

Variables

Numbers - Formatting

Numbers - Math

Test Script
Bad Web Design: Navigation Errors
Interactive Scripts
Newsgroup Security Tips
Prev articles12345 6 789101112Next articles



Operators


Computer & I'net articlesOperators

by David Stanley    



Operators are the things that assign, compare and combine values.

The equals = symbol is used to assign a value to something.

$StringName = "This value."

The string called $StringName has been assigned (now contains) the phrase This value.

Comparison operators will take two values, compare them, and continue on depending on a TRUE or FALSE result. These types of comparisons will be very useful for if/else statements and other loops.

== is equal to
!= is not equal to
< is less than
> is greather than
<= is less than or equal to
>= is greather than or equal to

The last batch of operators are known as logical operators. They will usually take two of the comparison operator conditions (above) and compares them to each other.

&& AND
|| OR


Sounds a bit confusing doesn't it? Don't worry, it shall all become clear as you go through the various pages following.




-----------------
Article by David Stanley. Visit his site http://www.htmlite.com. Reprinted with permission.





Debt Investment




  Disclaimer | Privacy | Terms of useCopyright © 2004 Nice2know.com