@@ -411,26 +411,38 @@ parentheses in your expressions (e.g. ``(1 + 2) * 4`` or ``1 + (2 * 4)``.
411
411
The following table summarizes the operators and their associativity from the
412
412
**highest to the lowest precedence **:
413
413
414
- ======================================================= =============
415
- Operators associativity
416
- ======================================================= =============
417
- ``- ``, ``+ `` (unary operators that add the number sign) none
418
- ``** `` right
419
- ``* ``, ``/ ``, ``% `` left
420
- ``not ``, ``! `` none
421
- ``~ `` left
422
- ``+ ``, ``- `` left
423
- ``.. `` left
424
- ``== ``, ``=== ``, ``!= ``, ``!== ``, \ left
425
- ``< ``, ``> ``, ``>= ``, ``<= ``, \
426
- ``not in ``, ``in ``, ``contains ``, \
427
- ``starts with ``, ``ends with ``, ``matches ``
428
- ``& `` left
429
- ``^ `` left
430
- ``| `` left
431
- ``and ``, ``&& `` left
432
- ``or ``, ``|| `` left
433
- ======================================================= =============
414
+ +----------------------------------------------------------+---------------+
415
+ | Operators | Associativity |
416
+ +==========================================================+===============+
417
+ | ``- `` , ``+ `` (unary operators that add the number sign) | none |
418
+ +----------------------------------------------------------+---------------+
419
+ | ``** `` | right |
420
+ +----------------------------------------------------------+---------------+
421
+ | ``* ``, ``/ ``, ``% `` | left |
422
+ +----------------------------------------------------------+---------------+
423
+ | ``not ``, ``! `` | none |
424
+ +----------------------------------------------------------+---------------+
425
+ | ``~ `` | left |
426
+ +----------------------------------------------------------+---------------+
427
+ | ``+ ``, ``- `` | left |
428
+ +----------------------------------------------------------+---------------+
429
+ | ``.. `` | left |
430
+ +----------------------------------------------------------+---------------+
431
+ | ``== ``, ``=== ``, ``!= ``, ``!== ``, | left |
432
+ | ``< ``, ``> ``, ``>= ``, ``<= ``, | |
433
+ | ``not in ``, ``in ``, ``contains ``, | |
434
+ | ``starts with ``, ``ends with ``, ``matches `` | |
435
+ +----------------------------------------------------------+---------------+
436
+ | ``& `` | left |
437
+ +----------------------------------------------------------+---------------+
438
+ | ``^ `` | left |
439
+ +----------------------------------------------------------+---------------+
440
+ | ``| `` | left |
441
+ +----------------------------------------------------------+---------------+
442
+ | ``and ``, ``&& `` | left |
443
+ +----------------------------------------------------------+---------------+
444
+ | ``or ``, ``|| `` | left |
445
+ +----------------------------------------------------------+---------------+
434
446
435
447
Built-in Objects and Variables
436
448
------------------------------
0 commit comments