Enum BooleanCriteria
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
BooleanCriteria
Es una enumeración que representa los criterios booleanos que se pueden usar en el formato condicional o en el filtro.
Para llamar a una enumeración, debes llamar a su clase superior, nombre y propiedad. Por ejemplo,
SpreadsheetApp.BooleanCriteria.CELL_EMPTY
.
Propiedades
Propiedad | Tipo | Descripción |
CELL_EMPTY | Enum | El criterio se cumple cuando una celda está vacía. |
CELL_NOT_EMPTY | Enum | Los criterios se cumplen cuando una celda no está vacía. |
DATE_AFTER | Enum | Los criterios se cumplen cuando una fecha es posterior al valor determinado. |
DATE_BEFORE | Enum | Los criterios se cumplen cuando una fecha es anterior al valor determinado. |
DATE_EQUAL_TO | Enum | Los criterios se cumplen cuando una fecha es igual al valor determinado. |
DATE_NOT_EQUAL_TO | Enum | El criterio se cumple cuando una fecha no es igual al valor determinado. |
DATE_AFTER_RELATIVE | Enum | Los criterios se cumplen cuando una fecha es posterior al valor de fecha relativa. |
DATE_BEFORE_RELATIVE | Enum | Los criterios se cumplen cuando una fecha es anterior al valor de fecha relativa. |
DATE_EQUAL_TO_RELATIVE | Enum | Los criterios se cumplen cuando una fecha es igual al valor de fecha relativa. |
NUMBER_BETWEEN | Enum | Los criterios se cumplen cuando se encuentra un número entre los valores dados. |
NUMBER_EQUAL_TO | Enum | Los criterios se cumplen cuando se obtiene un número igual al valor determinado. |
NUMBER_GREATER_THAN | Enum | Los criterios se cumplen cuando se obtiene un número mayor que el valor determinado. |
NUMBER_GREATER_THAN_OR_EQUAL_TO | Enum | El criterio se cumple cuando se obtiene un número mayor o igual que el valor determinado. |
NUMBER_LESS_THAN | Enum | Se cumple el criterio cuando se obtiene un número menor que el valor determinado. |
NUMBER_LESS_THAN_OR_EQUAL_TO | Enum | El criterio se cumple cuando se obtiene un número menor o igual que el valor determinado. |
NUMBER_NOT_BETWEEN | Enum | Los criterios se cumplen cuando se ingresa un número que no está entre los valores determinados. |
NUMBER_NOT_EQUAL_TO | Enum | Los criterios se cumplen cuando se obtiene un número que no es igual al valor determinado. |
TEXT_CONTAINS | Enum | Los criterios se cumplen cuando la entrada contiene el valor determinado. |
TEXT_DOES_NOT_CONTAIN | Enum | El criterio se cumple cuando la entrada no contiene el valor determinado. |
TEXT_EQUAL_TO | Enum | Los criterios se cumplen cuando la entrada es igual al valor determinado. |
TEXT_NOT_EQUAL_TO | Enum | Se cumple el criterio cuando la entrada no es igual al valor determinado. |
TEXT_STARTS_WITH | Enum | El criterio se cumple cuando la entrada comienza con el valor determinado. |
TEXT_ENDS_WITH | Enum | Los criterios se cumplen cuando la entrada termina con el valor determinado. |
CUSTOM_FORMULA | Enum | Los criterios se cumplen cuando la entrada hace que la fórmula determinada se evalúe como true . |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\u003cp\u003e\u003ccode\u003eBooleanCriteria\u003c/code\u003e is an enumeration used to define criteria for conditional formatting or filtering in Google Sheets.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a variety of properties representing different criteria types like \u003ccode\u003eCELL_EMPTY\u003c/code\u003e, \u003ccode\u003eDATE_EQUAL_TO\u003c/code\u003e, \u003ccode\u003eNUMBER_GREATER_THAN\u003c/code\u003e, \u003ccode\u003eTEXT_CONTAINS\u003c/code\u003e, and more.\u003c/p\u003e\n"],["\u003cp\u003eTo use a specific criteria, you call it using the syntax \u003ccode\u003eSpreadsheetApp.BooleanCriteria.<property>\u003c/code\u003e, for example, \u003ccode\u003eSpreadsheetApp.BooleanCriteria.CELL_EMPTY\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach property represents a specific condition, such as whether a cell is empty, a date is within a certain range, or text contains a specific string.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBooleanCriteria\u003c/code\u003e helps automate tasks and enhance data analysis by enabling you to dynamically format or filter spreadsheet data based on specified conditions.\u003c/p\u003e\n"]]],[],null,["# Enum BooleanCriteria\n\nBooleanCriteria\n\nAn enumeration representing the boolean criteria that can be used in conditional format or\nfilter.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.BooleanCriteria.CELL_EMPTY`. \n\n### Properties\n\n| Property | Type | Description |\n|-----------------------------------|--------|-------------------------------------------------------------------------------------|\n| `CELL_EMPTY` | `Enum` | The criteria is met when a cell is empty. |\n| `CELL_NOT_EMPTY` | `Enum` | The criteria is met when a cell is not empty. |\n| `DATE_AFTER` | `Enum` | The criteria is met when a date is after the given value. |\n| `DATE_BEFORE` | `Enum` | The criteria is met when a date is before the given value. |\n| `DATE_EQUAL_TO` | `Enum` | The criteria is met when a date is equal to the given value. |\n| `DATE_NOT_EQUAL_TO` | `Enum` | The criteria is met when a date is not equal to the given value. |\n| `DATE_AFTER_RELATIVE` | `Enum` | The criteria is met when a date is after the relative date value. |\n| `DATE_BEFORE_RELATIVE` | `Enum` | The criteria is met when a date is before the relative date value. |\n| `DATE_EQUAL_TO_RELATIVE` | `Enum` | The criteria is met when a date is equal to the relative date value. |\n| `NUMBER_BETWEEN` | `Enum` | The criteria is met when a number that is between the given values. |\n| `NUMBER_EQUAL_TO` | `Enum` | The criteria is met when a number that is equal to the given value. |\n| `NUMBER_GREATER_THAN` | `Enum` | The criteria is met when a number that is greater than the given value. |\n| `NUMBER_GREATER_THAN_OR_EQUAL_TO` | `Enum` | The criteria is met when a number that is greater than or equal to the given value. |\n| `NUMBER_LESS_THAN` | `Enum` | The criteria is met when a number that is less than the given value. |\n| `NUMBER_LESS_THAN_OR_EQUAL_TO` | `Enum` | The criteria is met when a number that is less than or equal to the given value. |\n| `NUMBER_NOT_BETWEEN` | `Enum` | The criteria is met when a number that is not between the given values. |\n| `NUMBER_NOT_EQUAL_TO` | `Enum` | The criteria is met when a number that is not equal to the given value. |\n| `TEXT_CONTAINS` | `Enum` | The criteria is met when the input contains the given value. |\n| `TEXT_DOES_NOT_CONTAIN` | `Enum` | The criteria is met when the input does not contain the given value. |\n| `TEXT_EQUAL_TO` | `Enum` | The criteria is met when the input is equal to the given value. |\n| `TEXT_NOT_EQUAL_TO` | `Enum` | The criteria is met when the input is not equal to the given value. |\n| `TEXT_STARTS_WITH` | `Enum` | The criteria is met when the input begins with the given value. |\n| `TEXT_ENDS_WITH` | `Enum` | The criteria is met when the input ends with the given value. |\n| `CUSTOM_FORMULA` | `Enum` | The criteria is met when the input makes the given formula evaluate to `true`. |"]]