Enum BooleanCriteria
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Criteri booleani
Un'enumerazione che rappresenta i criteri booleani che possono essere utilizzati nel formato condizionale o nel
filtro.
Per chiamare un enum, devi chiamare la relativa classe, il nome e la proprietà di base. Ad esempio,
SpreadsheetApp.BooleanCriteria.CELL_EMPTY
.
Proprietà
Proprietà | Tipo | Descrizione |
CELL_EMPTY | Enum | I criteri sono soddisfatti quando una cella è vuota. |
CELL_NOT_EMPTY | Enum | I criteri sono soddisfatti quando una cella non è vuota. |
DATE_AFTER | Enum | I criteri sono soddisfatti quando una data è successiva al valore specificato. |
DATE_BEFORE | Enum | I criteri sono soddisfatti quando una data è precedente al valore specificato. |
DATE_EQUAL_TO | Enum | I criteri sono soddisfatti quando una data è uguale al valore specificato. |
DATE_NOT_EQUAL_TO | Enum | I criteri sono soddisfatti quando una data non è uguale al valore specificato. |
DATE_AFTER_RELATIVE | Enum | I criteri sono soddisfatti quando una data è successiva al valore della data relativa. |
DATE_BEFORE_RELATIVE | Enum | I criteri sono soddisfatti quando una data è precedente al valore della data relativa. |
DATE_EQUAL_TO_RELATIVE | Enum | I criteri sono soddisfatti quando una data è uguale al valore della data relativa. |
NUMBER_BETWEEN | Enum | I criteri vengono soddisfatti quando un numero è compreso tra i valori specificati. |
NUMBER_EQUAL_TO | Enum | I criteri sono soddisfatti quando un numero è uguale al valore specificato. |
NUMBER_GREATER_THAN | Enum | I criteri sono soddisfatti quando un numero è maggiore del valore specificato. |
NUMBER_GREATER_THAN_OR_EQUAL_TO | Enum | I criteri sono soddisfatti quando un numero è maggiore o uguale al valore specificato. |
NUMBER_LESS_THAN | Enum | I criteri sono soddisfatti quando un numero è inferiore al valore specificato. |
NUMBER_LESS_THAN_OR_EQUAL_TO | Enum | I criteri sono soddisfatti quando un numero è minore o uguale al valore specificato. |
NUMBER_NOT_BETWEEN | Enum | I criteri sono soddisfatti quando un numero non è compreso tra i valori specificati. |
NUMBER_NOT_EQUAL_TO | Enum | I criteri sono soddisfatti quando un numero non è uguale al valore specificato. |
TEXT_CONTAINS | Enum | I criteri sono soddisfatti quando l'input contiene il valore specificato. |
TEXT_DOES_NOT_CONTAIN | Enum | I criteri sono soddisfatti quando l'input non contiene il valore specificato. |
TEXT_EQUAL_TO | Enum | I criteri sono soddisfatti quando l'input è uguale al valore specificato. |
TEXT_NOT_EQUAL_TO | Enum | I criteri sono soddisfatti quando l'input non è uguale al valore specificato. |
TEXT_STARTS_WITH | Enum | I criteri sono soddisfatti quando l'input inizia con il valore specificato. |
TEXT_ENDS_WITH | Enum | I criteri sono soddisfatti quando l'input termina con il valore specificato. |
CUSTOM_FORMULA | Enum | I criteri sono soddisfatti quando l'input fa sì che la formula data venga valutata come true . |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 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`. |"]]