From 6601ea472174bdd052f1b371c989fdafa5d5946e Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Thu, 24 Jan 2008 12:50:08 +0000 Subject: [PATCH] INTEGRATION: CWS hcshared15 (1.5.96); FILE MERGED 2008/01/11 14:00:17 ufi 1.5.96.3: new makefiles und zwischenstand 2008/01/04 11:42:54 ufi 1.5.96.2: Zwischenstand 2007/12/18 12:12:14 ufi 1.5.96.1: saving --- .../source/text/scalc/01/04060105.xhp | 91 ++++++++++--------- 1 file changed, 46 insertions(+), 45 deletions(-) diff --git a/helpcontent2/source/text/scalc/01/04060105.xhp b/helpcontent2/source/text/scalc/01/04060105.xhp index 3cf636570f..16a7bfa7d1 100644 --- a/helpcontent2/source/text/scalc/01/04060105.xhp +++ b/helpcontent2/source/text/scalc/01/04060105.xhp @@ -1,14 +1,15 @@ + - - + + + Logical Functions /text/scalc/01/04060105.xhp - -Sun Microsystems, Inc. -UFI: must rewrite all examples to become meaningful and helpful - logical functions @@ -56,102 +54,105 @@ This category contains the Logical functions. - -
+
AND function - -AND +AND Returns TRUE if all arguments are TRUE. If one of the elements is FALSE, this function returns the FALSE value. The arguments are either logical expressions themselves (TRUE, 1<5, 2+3=7, B8<10) that return logical values, or arrays (A1:C3) containing logical values. When a function expects a single value, but you entered a cell range, then the value from the cell range is taken that is in the same column or row as the formula.UFI: fixed #i18547# If the entered range is outside of the current column or row of the formula, the function returns the error value #VALUE! Syntax -AND(Logical value 1; Logical value 2 ...Logical value 30) +AND(LogicalValue1; LogicalValue2 ...LogicalValue30) -Logical value 1; Logical value 2 ...Logical value 30 are conditions to be checked. All conditions can be either TRUE or FALSE. If a range is entered as a parameter, the function uses the value from the range that is in the current column or row. The result is TRUE if the logical value in all cells within the cell range is TRUE. +LogicalValue1; LogicalValue2 ...LogicalValue30 are conditions to be checked. All conditions can be either TRUE or FALSE. If a range is entered as a parameter, the function uses the value from the range that is in the current column or row. The result is TRUE if the logical value in all cells within the cell range is TRUE. Example The logical values of entries 12<13; 14>12, and 7<6 are to be checked: -AND(12<13; 14>12; 7<6) returns FALSE. -AND (FALSE;TRUE) returns FALSE. + +=AND(12<13;14>12;7<6) returns FALSE. + +=AND (FALSE;TRUE) returns FALSE.
FALSE function - -FALSE +FALSE Returns the logical value FALSE. The FALSE() function does not require any arguments, and always returns the logical value FALSE. Syntax FALSE() Example -FALSE() returns FALSE -NOT(FALSE()) returns TRUE + +=FALSE() returns FALSE + +=NOT(FALSE()) returns TRUE
IF function - -IF +IF Specifies a logical test to be performed. Syntax -IF(Test; Then_value; Otherwise_value) +IF(Test; ThenValue; "OtherwiseValue") Test is any value or expression that can be TRUE or FALSE. -Then_value (optional) is the value that is returned if the logical test is TRUE. +ThenValue (optional) is the value that is returned if the logical test is TRUE. -Otherwise_value (optional) is the value that is returned if the logical test is FALSE. +OtherwiseValue (optional) is the value that is returned if the logical test is FALSE. Examples -IF(A1>5;100;"too small") If the value in A1 is higher than 5, the value 100 is entered in the current cell; otherwise, too small is entered in text format. + +=IF(A1>5;100;"too small") If the value in A1 is higher than 5, the value 100 is entered in the current cell; otherwise, the text “too small” (without quotes) is entered.
NOT function - -NOT +NOT Reverses the logical value. Syntax -NOT(Logical value) +NOT(LogicalValue) -Logical Value is any value to be reversed. +LogicalValue is any value to be reversed. Example -NOT(A). A=TRUE reverses to A=FALSE. + +=NOT(A). A=TRUE reverses to A=FALSE.
OR function - -OR +OR Returns TRUE if at least one argument is TRUE. This function returns the value FALSE, if all the arguments have the logical value FALSE. The arguments are either logical expressions themselves (TRUE, 1<5, 2+3=7, B8<10) that return logical values, or arrays (A1:C3) containing logical values. When a function expects a single value, but you entered a cell range, then the value from the cell range is taken that is in the same column or row as the formula. If the entered range is outside of the current column or row of the formula, the function returns the error value #VALUE! Syntax -OR(Logical value 1; Logical value 2 ...Logical value 30) +OR(LogicalValue1; LogicalValue2 ...LogicalValue30) -Logical value 1; Logical value 2 ...Logical value 30 are conditions to be checked. All conditions can be either TRUE or FALSE. If a range is entered as a parameter, the function uses the value from the range that is in the current column or row.UFI: first try to fix bugtraq 4905779 +LogicalValue1; LogicalValue2 ...LogicalValue30 are conditions to be checked. All conditions can be either TRUE or FALSE. If a range is entered as a parameter, the function uses the value from the range that is in the current column or row.UFI: first try to fix bugtraq 4905779 Example The logical values of entries 12<11; 13>22, and 45=45 are to be checked. -OR(12<11; 13>22; 45=45) returns TRUE. -OR(FALSE;TRUE) returns TRUE. + +=OR(12<11;13>22;45=45) returns TRUE. + +=OR(FALSE;TRUE) returns TRUE.
TRUE function - -TRUE +TRUE The logical value is set to TRUE. The TRUE() function does not require any arguments, and always returns the logical value TRUE. Syntax TRUE() Example If A=TRUE and B=FALSE the following examples appear: -=AND(A;B) returns FALSE -=OR(A;B) returns TRUE -=NOT(AND(A;B)) returns TRUE + +=AND(A;B) returns FALSE + +=OR(A;B) returns TRUE + +=NOT(AND(A;B)) returns TRUE
-
- +