Operators
Operators work the same way as in most languages. Only the words আৰু (and) and বা (or) are in Assamese.
Arithmetic
| Operator | Meaning | Example |
|---|---|---|
+ | add (or join text) | ২ + ৩ → ৫ |
- | subtract | ৯ - ৪ → ৫ |
* | multiply | ৬ * ৭ → ৪২ |
/ | divide | ৭ / ২ → ৩.৫ |
% | remainder | ৭ % ২ → ১ |
Dividing by zero is an error (R004), not infinity.
Comparison
==, !=, <, <=, >, >= compare values and give সঁচা or মিছা. == works on any two values; the others need two numbers or two texts.
Logic
| Assamese | English letters | Symbol | Meaning |
|---|---|---|---|
আৰু | aru | && | both are true |
বা | ba | || | at least one is true |
! | not |
আৰু and বা stop early: if the left side already decides the answer, the right side isn’t evaluated.
Precedence
From strongest to weakest:
!and unary-* / %+ -< <= > >=== !=আৰুবা=
When in doubt, use brackets.