Funciones lóxiques

This category contains the Logical functions.

Handling non-logical arguments in logical functions

P'aportar a esti comandu...

Inxertar - Función - Categoría Lóxicu


FALSU

Devuelve'l valor lóxicu FALSU. La función FALSU() nun riquir nengún argumentu, y siempres devuelve'l valor lóxicu FALSU.

Sintaxis

FALSU()

Exemplu

=FALSU() devuelve FALSU

=NON(FALSU()) devuelve VERDADERU

NON

Complementa (invierti) un valor lóxicu.

Sintaxis

NON(ValorLógico)

ValorLógico ye cualquier valor que se deba complementar.

Exemplu

=NON(A). Si A=VERDADERU, entós NON(A) va evaluar FALSU.

O

Devuelve VERDADERU si siquier unu de los argumentos ye VERDADERU. Esta función devuelve'l valor FALSU si tolos argumentos tienen el valor lóxicu FALSU.

Los argumentos son espresiones lóxiques (VERDADERU, 1<5, 2+3=7, B8<10) que devuelven valores lóxicos, o matrices (A1:C3) que contienen valores lóxicos.

Sintaxis

O(ValorLógico1; ValorLógico2 ...ValorLógico30)

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.

Exemplu

Tienen de comprobase los valores lóxicos de les entraes 12<11; 13>22 y 45=45.

=O(12<11;13>22;45=45) devuelve VERDADERU.

=O(FALSU;VERDADERU) devuelve VERDADERU.

SI

Especifica una prueba lóxica que tien de llevase a cabu.

Sintaxis

SI(Prueba; ValorSiVerdadero; SiNoValor)

Prueba ye cualquier valor o espresión que pueda ser VERDADERU o FALSU.

ValorSiVerdadero (opcional) ye'l valor que se devuelve si la prueba lóxica da como resultancia VERDADERA.

SiNoValor (opcional) ye'l valor que se devuelve si la prueba lóxica ye FALSU.

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.

Exemplos

=SI(A1>5;100;"demasiáu pequeñu") Si'l valor n'A1 ye mayor que 5, especifícase'l valor 100 na caxella actual; en casu contrariu, introduzse “demasiáu pequeñu” (ensin comines).

VERDADERU

El valor lóxicu configúrase como VERDADERU. La función VERDADERU() nun riquir nengún argumentu, y siempres devuelve'l valor lóxicu VERDADERU.

Sintaxis

VERDADERU()

Exemplu

Si A=VERDADERU y B=FALSU, van apaecer los exemplos siguientes:

=Y(A;B) devuelve FALSU

=O(A;B) devuelve VERDADERU

=NON(Y(A;B)) devuelve VERDADERU.

XOR

Returns true if an odd number of arguments evaluates to TRUE.

Los argumentos son espresiones lóxiques (VERDADERU, 1<5, 2+3=7, B8<10) que devuelven valores lóxicos, o matrices (A1:C3) que contienen valores lóxicos.

Sintaxis

O(ValorLógico1; ValorLógico2 ...ValorLógico30)

Exemplu

=Y (FALSU;VERDADERU) devuelve FALSU.

=O(FALSU;VERDADERU) devuelve VERDADERU.

=O(FALSU;VERDADERU) devuelve VERDADERU.

Y

Devuelve VERDADERU si tolos argumentos son VERDADEROS. Si unu de los elementos ye FALSU, esta función devuelve'l valor FALSU.

Los argumentos son espresiones lóxiques (VERDADERU, 1<5, 2+3=7, B8<10) que devuelven valores lóxicos, o matrices (A1:C3) que contienen valores lóxicos.

Sintaxis

Y(ValorLógico1; ValorLógico2 ...ValorLógico30)

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.

Exemplu

Tienen de comprobase los valores lóxicos de les entraes 12<13; 14>12 y 7<6:

=Y(12<13;14>12;7<6) devuelve FALSU.

=Y (FALSU;VERDADERU) devuelve FALSU.