Enum BooleanCriteria
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブール値条件条件付き書式やフィルタで使用できるブール値の条件を表す列挙型。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。たとえば、
SpreadsheetApp.BooleanCriteria.CELL_EMPTY
です。
プロパティ
プロパティ | タイプ | 説明 |
CELL_EMPTY | Enum | セルが空の場合、条件が満たされます。 |
CELL_NOT_EMPTY | Enum | セルが空でない場合、条件が満たされます。 |
DATE_AFTER | Enum | 指定された値より後の日付の場合、条件が満たされます。 |
DATE_BEFORE | Enum | 指定された値より前の日付の場合、条件が満たされます。 |
DATE_EQUAL_TO | Enum | 日付が指定された値と等しい場合に条件が満たされます。 |
DATE_NOT_EQUAL_TO | Enum | 日付が指定された値と等しくない場合、条件が満たされます。 |
DATE_AFTER_RELATIVE | Enum | 日付が相対日付値より後の場合、条件が満たされます。 |
DATE_BEFORE_RELATIVE | Enum | 日付が相対日付値より前の場合、条件が満たされます。 |
DATE_EQUAL_TO_RELATIVE | Enum | 日付が相対日付値と等しい場合に条件が満たされます。 |
NUMBER_BETWEEN | Enum | 指定された値の範囲内にある数値の場合、条件が満たされます。 |
NUMBER_EQUAL_TO | Enum | 指定された値に等しい数値が条件を満たします。 |
NUMBER_GREATER_THAN | Enum | 指定された値より大きい数値の場合、条件が満たされます。 |
NUMBER_GREATER_THAN_OR_EQUAL_TO | Enum | 指定された値以上の数値が条件を満たします。 |
NUMBER_LESS_THAN | Enum | 数値が指定された値より小さい場合に条件が満たされます。 |
NUMBER_LESS_THAN_OR_EQUAL_TO | Enum | 数値が指定された値以下の場合、条件が満たされます。 |
NUMBER_NOT_BETWEEN | Enum | 指定された値の範囲外の数値が条件を満たします。 |
NUMBER_NOT_EQUAL_TO | Enum | 指定された値と等しくない数値の場合、条件が満たされます。 |
TEXT_CONTAINS | Enum | 入力に指定された値が含まれている場合、条件が満たされます。 |
TEXT_DOES_NOT_CONTAIN | Enum | 入力に指定された値が含まれていない場合、条件が満たされます。 |
TEXT_EQUAL_TO | Enum | 入力が指定された値と等しい場合、条件が満たされます。 |
TEXT_NOT_EQUAL_TO | Enum | 入力が指定された値と等しくない場合、条件が満たされます。 |
TEXT_STARTS_WITH | Enum | 入力が指定された値で始まると、条件が満たされます。 |
TEXT_ENDS_WITH | Enum | 入力が指定された値で終わると、条件が満たされます。 |
CUSTOM_FORMULA | Enum | 条件が満たされると、指定された数式が true と評価されます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 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`. |"]]