Comparison Operations: Difference between revisions
Jump to navigation
Jump to search
(edit) |
(edit) |
||
Line 49: | Line 49: | ||
<noinclude> | <noinclude> | ||
[[Category:Operations]] | [[Category:Operations]] | ||
[[Category: | [[Category:Comparison Operations]] | ||
</noinclude> | </noinclude> |
Revision as of 12:32, 11 January 2012
Below is the list of binary operators:
Operator | Effect |
= | may be used for assignment or comparing 2 values like the == operator |
:= | forced assignment |
<> | not equal |
& | concatenation of strings |
* | multiplication |
*= | multiplication of the left operand by the right operand followed by assignment of the result to the left operand |
+ | addition |
+= | addition of the left operand to the right operand followed by assignment of the result to the left operand |
- | subtraction |
-= | subtraction of the right operand from the left operand followed by assignment of the result to the left operand |
/ | division |
/= | division of the left operand by the right operand followed by assignment of the result to the left operand |
< | less than |
<= | less than or equal to |
== | equality |
> | more than |
>= | more than or equal to |
and | logical AND |
&& | logical AND. The use of AND is preferred for readability. |
or | logical OR |
|| | logical OR. The use of OR is preferred for readability. |