Artikel: AN0002154Aktualisiert:
Die vorgegebene Sprachenversion vom Artikeltext wird angezeigt, weil es kein Text von der ausgewählten Sprache und Version gibt.
Operator |
Use |
Example |
+ |
1. Addition of numbers
2. Concatenation of strings |
1. 5+2 = 7
2. 'name'+'@'+'domain' |
- |
Subtraction |
5-2 = 3 |
* |
Multiplication |
5*2 = 10 |
: |
Division |
5:2 = 2.5 |
. |
Separator of the decimal part |
5.2 |
% |
Remainder after modulo division |
5%2 = 1 |
|| |
Logical disjunction |
|
&& |
Logical conjunction |
|
! |
Logical negation |
|
not |
Logical negation |
|
^ |
Exclusive disjunction (XOR) |
|
< |
Less than |
5<2 = false |
> |
Greater than |
5>2 = true |
<= |
Less than or equal to |
|
>= |
Greater than or equal to |
|
= |
Equal to |
|
== |
Equal to |
|
Operator not has to be written in lower case.