From 6614bedceadcc07ec082c5e926107f27903bda5c Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Mon, 25 Jan 2016 20:07:10 +0100 Subject: fix validation errors by round-trip through helpauthoring extension lots of missing attributes "id" and "xml-lang" (extension patched to keep bascode tag) Change-Id: I9c5600b6fa133a6b1062803eadb976e043db7a4a --- source/text/sbasic/shared/03060600.xhp | 77 ++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 37 deletions(-) (limited to 'source/text/sbasic/shared/03060600.xhp') diff --git a/source/text/sbasic/shared/03060600.xhp b/source/text/sbasic/shared/03060600.xhp index eab19bb28b..5cae45ea68 100644 --- a/source/text/sbasic/shared/03060600.xhp +++ b/source/text/sbasic/shared/03060600.xhp @@ -1,6 +1,5 @@ - - + - - +--> + - -Xor-Operator [Runtime] -/text/sbasic/shared/03060600.xhp - - -Sun Microsystems, Inc. - + + Xor-Operator [Runtime] + /text/sbasic/shared/03060600.xhp + + + +
-Xor operator (logical) + + Xor operator (logical) -Xor-Operator [Runtime] -Performs a logical Exclusive-Or combination of two expressions. + + +Xor-Operator [Runtime] +Performs a logical Exclusive-Or combination of two expressions.
-Syntax: - -Result = Expression1 Xor Expression2 + +Syntax: + +Result = Expression1 Xor Expression2 -Parameters: - -Result: Any numeric variable that contains the result of the combination. - -Expression1, Expression2: Any numeric expressions that you want to combine. -A logical Exclusive-Or conjunction of two Boolean expressions returns the value True only if both expressions are different from each other. -A bitwise Exclusive-Or conjunction returns a bit if the corresponding bit is set in only one of the two expressions. -Example: + +Parameters: + Result: Any numeric variable that contains the result of the combination. + Expression1, Expression2: Any numeric expressions that you want to combine. +A logical Exclusive-Or conjunction of two Boolean expressions returns the value True only if both expressions are different from each other. +A bitwise Exclusive-Or conjunction returns a bit if the corresponding bit is set in only one of the two expressions. + +Example: -Sub ExampleXor -Dim vA As Variant, vB As Variant, vC As Variant, vD As Variant -Dim vOut As Variant - vA = 10: vB = 8: vC = 6: vD = Null - vOut = vA > vB Xor vB > vC ' returns 0 - vOut = vB > vA Xor vB > vC ' returns -1 - vOut = vA > vB Xor vB > vD ' returns -1 - vOut = (vB > vD Xor vB > vA) ' returns 0 - vOut = vB Xor vA ' returns 2 -End Sub +Sub ExampleXor +Dim vA As Variant, vB As Variant, vC As Variant, vD As Variant +Dim vOut As Variant + vA = 10: vB = 8: vC = 6: vD = Null + vOut = vA > vB Xor vB > vC ' returns 0 + vOut = vB > vA Xor vB > vC ' returns -1 + vOut = vA > vB Xor vB > vD ' returns -1 + vOut = (vB > vD Xor vB > vA) ' returns 0 + vOut = vB Xor vA ' returns 2 +End Sub -
+ +
\ No newline at end of file -- cgit