|
|
|
Mathematics and compare-operators,
The most important operator is the =-operator.
It places the value on its right to the value on its left.
Example:
number=2
Mathematical-operators
| A + B |
add |
| A - B |
Subtracks |
| A * B |
Multiplies |
| A / B |
Divides |
| A ^ B |
A raised to the Bth power |
| -A |
negation, positive becomes negative and negative becomes positive |
| A MOD B |
rest of A/B |
| A \ B |
The quotient (whole number) of a A/B |
compare-operators
The result of a comparison has always the value TRUE or FALSE.
| = |
equals |
| < |
smaller then |
| <= |
smaller or equal then |
| <> |
different then |
| > |
larger then |
| >= |
larger or equal then |
Logic-operators
They combine the results of comparisons.
| C1 AND C2 |
The comparisons must both be TRUE, so AND can give TRUE. |
| C1 OR C2 |
1 of the comparisons must be true, so OR gives TRUE |
| NOT C |
The result of the comparison is reversed. True become FALSE. |
Concatenate operator
To put strings together, we use the operator &.
street="somestreet"
streetnr="52"
completeaddress= street & streetnr
TOP
|
|