Logikaj funkcioj
This category contains the Logical functions.
Handling non-logical arguments in logical functions
-
Zero (0) is equivalent to FALSE and all other numbers are equivalent to TRUE.
-
Empty cells and text in cells are ignored.
-
A #VALUE error is raised if all arguments are ignored.
-
A #VALUE error is raised if one argument is direct text (not text in a cell).
-
Errors as argument lead to an error.
AĆŹ
Liveras je VERA se almenaĆ unu argumento estas VERA. Äi tiu funkcio liveras la valoron FALSA, se Äiuj argumentoj havas la logikan valoron FALSA.
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.La argumentoj estas aĆ logikaj esprimoj (VERA, 1<5, 2+3=7, B8<10) kiuj liveras logikajn valorojn, aĆ tabeloj (A1:C3) kiuj enhavas logikajn valorojn.
OR(LogicalValue1; LogicalValue2 ...LogicalValue30)
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 all values of the range.
La logikaj valoroj de la eroj 12<11; 13>22, kaj 45=45 estas testotaj.
=AĆŹ(12<11;13>22;45=45) liveras je VERA.
=AĆŹ(FALSA;VERA) liveras ja VERA.
FALSA
Liveras la logikan valoron FALSA. La FALSA()-funkcio ne bezonas argumentojn, kaj Äiam liveras la logikan valoron FALSA.
FALSA()
=KAJ(A;B) liveras je FALSA
=NE(KAJ(A;B)) liveras je VERA
KAJ
Liveras je VERA se Äiuj argumentoj estas veraj. Se unu elemento estas falsa, la funkcio liveras la valoron FALSA.
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.La argumentoj estas aĆ logikaj esprimoj (VERA, 1<5, 2+3=7, B8<10) kiuj liveras logikajn valorojn, aĆ tabeloj (A1:C3) kiuj enhavas logikajn valorojn.
AND(LogicalValue1; LogicalValue2 ...LogicalValue30)
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 all values of the range. The result is TRUE if the logical value in all cells within the cell range is TRUE.
La logikaj valoroj de la eroj 12<13; 14>12, kaj 7<6 estas testotaj:
=KAJ(12<13;14>12;7<6) liveras je FALSA.
=KAJ(A;B) liveras je FALSA
NE
Complements (inverts) a logical value.
NOT(LogicalValue)
LogicalValue is any value to be complemented.
=NOT(A). If A=TRUE then NOT(A) will evaluate FALSE.
SE
Specifas logikan teston farotan.
IF(Test; ThenValue; OtherwiseValue)
Testo estas valoro aĆ esprimo kiu povas esti VERA aĆ FALSA.
ThenValue (optional) is the value that is returned if the logical test is TRUE.
OtherwiseValue (optional) is the value that is returned if the logical test is FALSE.
In the LibreOffice Calc functions, parameters marked as "optional" can be left out only when no parameter follows. For example, in a function with four parameters, where the last two parameters are marked as "optional", you can leave out parameter 4 or parameters 3 and 4, but you cannot leave out parameter 3 alone.
=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.
VERA
Atribuas la logikan valoron al VERA. La VERA()-funkcio ne bezonas argumentojn, kaj Äiam liveras la logikan valoron VERA.
VERA()
Se A=VERA kaj B=FALSA the jenaj ekzemploj aperas:
=KAJ(A;B) liveras je FALSA
=AĆŹ(A;B) liveras je VERA
=NE(KAJ(A;B)) liveras je VERA
XOR
Returns true if an odd number of arguments evaluates to TRUE.
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.La argumentoj estas aĆ logikaj esprimoj (VERA, 1<5, 2+3=7, B8<10) kiuj liveras logikajn valorojn, aĆ tabeloj (A1:C3) kiuj enhavas logikajn valorojn.
XOR(LogicalValue1; LogicalValue2 ...LogicalValue30)
=KAJ(A;B) liveras je FALSA
=XAĆŹ(VERA;VERA;VERA) liveras je VERA
=XAĆŹ(FALSA;VERA) liveras je VERA