Commit eedd1faf authored by twanvl's avatar twanvl

documented precedence of ^ operator

parent 9354ddf9
...@@ -40,8 +40,8 @@ It is also possible to compare values. All comparisons evaluate to either @true@ ...@@ -40,8 +40,8 @@ It is also possible to compare values. All comparisons evaluate to either @true@
@"x" <= "y"@ Is a less than b or are they equal? @"x" <= "y"@ Is a less than b or are they equal?
| @a >= b@ @2 >= 1@<br/> | @a >= b@ @2 >= 1@<br/>
@"x" >= "x"@ Is a greater than b or are they equal? @"x" >= "x"@ Is a greater than b or are they equal?
| @min(a,b)@ @min(1,2) == 1@ Returns the smallest of two values. | @min(a,b)@ @min(1,2) == 1@ Returns the smallest of two or more values.
| @max(a,b)@ @max(1,2) == 2@ Returns the largest of two values. | @max(a,b)@ @max(1,2) == 2@ Returns the largest of two or more values.
--Booleans-- --Booleans--
[[type:Boolean]]s (for example from comparisons) can be combined using: [[type:Boolean]]s (for example from comparisons) can be combined using:
...@@ -67,6 +67,7 @@ The exact order of precedence is given in the following table, ...@@ -67,6 +67,7 @@ The exact order of precedence is given in the following table,
higher in the table means that this operator binds tighter to its arguments, @*@ binds tighter then @+@. higher in the table means that this operator binds tighter to its arguments, @*@ binds tighter then @+@.
| @a(...)@, @a.b@, @a[b]@ Function calls, property access, see below | @a(...)@, @a.b@, @a[b]@ Function calls, property access, see below
| @-a@, @not@ Unary operators | @-a@, @not@ Unary operators
| @^@ Exponentiation
| @*@, @/@, @div@, @mod@ Multiplication and division | @*@, @/@, @div@, @mod@ Multiplication and division
| @+@, @-@ Addition and substraction | @+@, @-@ Addition and substraction
| @==@, @!=@, @<@, @>@, @<=@, @>=@ Comparisons | @==@, @!=@, @<@, @>@, @<=@, @>=@ Comparisons
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment