Logikaj funkcioj

This category contains the Logical functions.

Handling non-logical arguments in logical functions

Por atingi ĉi tiun komandon...

Enmeti - Funkcion - Kategorio Logika


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.

Sintakso

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.

Ekzemplo

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.

Sintakso

FALSA()

Ekzemplo

=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.

Sintakso

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.

Ekzemplo

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.

Sintakso

NOT(LogicalValue)

LogicalValue is any value to be complemented.

Ekzemplo

=NOT(A). If A=TRUE then NOT(A) will evaluate FALSE.

SE

Specifas logikan teston farotan.

Sintakso

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.

Ekzemploj

=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.

Sintakso

VERA()

Ekzemplo

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.

Sintakso

XOR(LogicalValue1; LogicalValue2 ...LogicalValue30)

Ekzemplo

=KAJ(A;B) liveras je FALSA

=XAŬ(VERA;VERA;VERA) liveras je VERA

=XAŬ(FALSA;VERA) liveras je VERA