diff --git a/doc/reference/src/expressions.xml b/doc/reference/src/expressions.xml index bfda5125..82f66390 100644 --- a/doc/reference/src/expressions.xml +++ b/doc/reference/src/expressions.xml @@ -379,7 +379,7 @@ bool falseValue = (bool) ExpressionEvaluator.GetValue(ieee, expression);and, or, xor and not. Their use is demonstrated below. Note, that the logical and bitwise operators are the same and their interpretation depends if you pass in integral values or boolean values. // AND -int result = (int) ExpressionEvaluator.GetValue(null, "1 and 3"); // 1 & 3 +int result = (int) ExpressionEvaluator.GetValue(null, "1 and 3"); // 1 & 3 // OR int result = (int) ExpressionEvaluator.GetValue(null, "1 or 3"); // 1 | 3 @@ -389,6 +389,7 @@ int result = (int) ExpressionEvaluator.GetValue(null, "1 xor 3"); // 1 ^ 3 // NOT int result = (int) ExpressionEvaluator.GetValue(null, "!1"); // ~1 +