Difference between revisions of "Operators"
From SDU
Agegeleruvy (Talk | contribs) |
m (Reverted edits by Agegeleruvy (Talk); changed back to last version by Michal.kopl) |
||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
__NOTOC__ | __NOTOC__ | ||
[[Category:Customizations]] | [[Category:Customizations]] | ||
| Line 13: | Line 5: | ||
== Arithmetic Operators == | == Arithmetic Operators == | ||
| − | + | <source lang="javascript"> | |
+ Addition | + Addition | ||
- Subtraction | - Subtraction | ||
| Line 19: | Line 11: | ||
/ Division | / Division | ||
% Modulo, for example a % b will result in the remainder of a divided by b | % Modulo, for example a % b will result in the remainder of a divided by b | ||
| − | + | </source> | |
== Comparison (Relational) Operators == | == Comparison (Relational) Operators == | ||
| − | + | <source lang="javascript"> | |
== Equal to | == Equal to | ||
!= Not Equal to | != Not Equal to | ||
| − | + | <= Less than or equal to | |
| − | + | < Less than | |
| − | + | >= Greater than or equal to | |
| − | + | > Greater than | |
| − | + | </source> | |
== Concatenation Operators == | == Concatenation Operators == | ||
| − | + | <source lang="javascript"> | |
+ | + | ||
| − | + | </source> | |
== Logical Operators == | == Logical Operators == | ||
| − | + | <source lang="javascript"> | |
|| | || | ||
| − | & | + | && |
! | ! | ||
| − | + | </source> | |
== Assignment Operators == | == Assignment Operators == | ||
| − | + | <source lang="javascript"> | |
= simple assignment | = simple assignment | ||
+= Compound addition, like in C | += Compound addition, like in C | ||
| Line 51: | Line 43: | ||
/= Compound division | /= Compound division | ||
%= Compound modulo | %= Compound modulo | ||
| − | + | </source> | |
Latest revision as of 05:22, 30 November 2010
To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.
To discuss or ask questions about this article, select the discussion tab above.
Arithmetic Operators
<source lang="javascript"> + Addition - Subtraction
- Multiplication
/ Division % Modulo, for example a % b will result in the remainder of a divided by b </source>
Comparison (Relational) Operators
<source lang="javascript"> == Equal to != Not Equal to <= Less than or equal to < Less than >= Greater than or equal to > Greater than </source>
Concatenation Operators
<source lang="javascript"> + </source>
Logical Operators
<source lang="javascript"> || && ! </source>
Assignment Operators
<source lang="javascript"> = simple assignment += Compound addition, like in C -= Compound subtraction
- = Compound multiplication
/= Compound division %= Compound modulo </source>