mirror of https://github.com/Icinga/icinga2.git
Fix wrong operator precedence in documentation
<1> => (1 || 0) && 0 0.000000 <2> => 1 || (0 && 0) 1.000000 <3> => 1 || 0 && 0 1.000000 <4> =>
This commit is contained in:
parent
987bb22397
commit
247e41309a
|
@ -204,8 +204,8 @@ Operator | Precedence | Examples (Result) | Descript
|
|||
`&` | 9 | 7 & 3 (3) | Binary AND
|
||||
`^` | 10 | 17 ^ 12 (29) | Bitwise XOR
|
||||
<code>|</code> | 11 | 2 | 3 (3) | Binary OR
|
||||
<code>||</code> | 12 | true || false (true), 0 || 7 (7)| Logical OR
|
||||
`&&` | 13 | true && false (false), 3 && 7 (7), 0 && 7 (0) | Logical AND
|
||||
`&&` | 12 | true && false (false), 3 && 7 (7), 0 && 7 (0) | Logical AND
|
||||
<code>||</code> | 13 | true || false (true), 0 || 7 (7)| Logical OR
|
||||
`=` | 14 | a = 3 | Assignment
|
||||
`=>` | 15 | x => x * x (function with arg x) | Lambda, for loop
|
||||
`?` | 16 | (2 * 3 > 5) ? 1 : 0 (1) | [Ternary operator](17-language-reference.md#conditional-statements-ternary)
|
||||
|
|
Loading…
Reference in New Issue