Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
arithmetic operators
comparison operators
isvalid operator
typeof operator
OPERATOR: assignment:
= += -= *= /= div=  %=  <<=  >>= >>>= &= |= ^=
The
assigment
operators are used set the value of an operand by permitting shorthand versions of standard arithmetic operations. Please refer to the
arithmetic
operators.
=
The basic assignment operator is the equal sign, which assigns the value (literal or variable) on its right to the variable on its left:
Code:
x = a;
+= -= *= /= div=  %=
The equal sign is combined with the +, -, *, /, div and % operators to give the following shorthand versions of standard arithmetic operations:
Code:
a
+=
b
instead of
a = a + b
a
-=
b
instead of
a = a - b
a
*=
b
instead of
a = a * b
a
/=
b
instead of
a = a / b
a
div=
b
instead of
a = a div b
a
%=
b
instead of
a = a % b
 <<=  >>= >>>= &= |= ^=
The equal sign can also be combined with the <<, >>, >>>, &, |, and ^ operators to give the following shorthand versions of standard bitwise operations:
Code:
a
<<=
b
instead of
a = a << b
a
>>=
b
instead of
a = a >> b
a
>>>=
b
instead of
a = a >>> b
a
&=
b
instead of
a = a & b
a
|=
b
instead of
a = a | b
a
^=
b
instead of
a = a ^ b
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information